diff options
Diffstat (limited to 'src/core/hle/kernel/mutex.h')
| -rw-r--r-- | src/core/hle/kernel/mutex.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/hle/kernel/mutex.h b/src/core/hle/kernel/mutex.h index 45268bbe9..81e62d497 100644 --- a/src/core/hle/kernel/mutex.h +++ b/src/core/hle/kernel/mutex.h | |||
| @@ -11,6 +11,7 @@ union ResultCode; | |||
| 11 | 11 | ||
| 12 | namespace Kernel { | 12 | namespace Kernel { |
| 13 | 13 | ||
| 14 | class HandleTable; | ||
| 14 | class Thread; | 15 | class Thread; |
| 15 | 16 | ||
| 16 | class Mutex final { | 17 | class Mutex final { |
| @@ -21,8 +22,8 @@ public: | |||
| 21 | static constexpr u32 MutexOwnerMask = 0xBFFFFFFF; | 22 | static constexpr u32 MutexOwnerMask = 0xBFFFFFFF; |
| 22 | 23 | ||
| 23 | /// Attempts to acquire a mutex at the specified address. | 24 | /// Attempts to acquire a mutex at the specified address. |
| 24 | static ResultCode TryAcquire(VAddr address, Handle holding_thread_handle, | 25 | static ResultCode TryAcquire(HandleTable& handle_table, VAddr address, |
| 25 | Handle requesting_thread_handle); | 26 | Handle holding_thread_handle, Handle requesting_thread_handle); |
| 26 | 27 | ||
| 27 | /// Releases the mutex at the specified address. | 28 | /// Releases the mutex at the specified address. |
| 28 | static ResultCode Release(VAddr address); | 29 | static ResultCode Release(VAddr address); |