diff options
Diffstat (limited to 'src/core/hle/kernel/kernel.h')
| -rw-r--r-- | src/core/hle/kernel/kernel.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/core/hle/kernel/kernel.h b/src/core/hle/kernel/kernel.h index 9503e7d04..67eae93f2 100644 --- a/src/core/hle/kernel/kernel.h +++ b/src/core/hle/kernel/kernel.h | |||
| @@ -132,13 +132,14 @@ using SharedPtr = boost::intrusive_ptr<T>; | |||
| 132 | class WaitObject : public Object { | 132 | class WaitObject : public Object { |
| 133 | public: | 133 | public: |
| 134 | /** | 134 | /** |
| 135 | * Check if the current thread should wait until the object is available | 135 | * Check if the specified thread should wait until the object is available |
| 136 | * @param thread The thread about which we're deciding. | ||
| 136 | * @return True if the current thread should wait due to this object being unavailable | 137 | * @return True if the current thread should wait due to this object being unavailable |
| 137 | */ | 138 | */ |
| 138 | virtual bool ShouldWait() = 0; | 139 | virtual bool ShouldWait(Thread* thread) const = 0; |
| 139 | 140 | ||
| 140 | /// Acquire/lock the object if it is available | 141 | /// Acquire/lock the object for the specified thread if it is available |
| 141 | virtual void Acquire() = 0; | 142 | virtual void Acquire(Thread* thread) = 0; |
| 142 | 143 | ||
| 143 | /** | 144 | /** |
| 144 | * Add a thread to wait on this object | 145 | * Add a thread to wait on this object |