diff options
| author | 2017-01-01 16:53:22 -0500 | |
|---|---|---|
| committer | 2017-01-04 15:58:45 -0500 | |
| commit | e6a7723f2f4b62279cd4f6d4b48eb02a9b60ffb6 (patch) | |
| tree | b56862bb64fcf57727149de90318671ffd8afe4d /src/core/hle/kernel/kernel.h | |
| parent | Kernel/Synch: Do not attempt a reschedule on every syscall. (diff) | |
| download | yuzu-e6a7723f2f4b62279cd4f6d4b48eb02a9b60ffb6.tar.gz yuzu-e6a7723f2f4b62279cd4f6d4b48eb02a9b60ffb6.tar.xz yuzu-e6a7723f2f4b62279cd4f6d4b48eb02a9b60ffb6.zip | |
Kernel: Object ShouldWait and Acquire calls now take a thread as a parameter.
This will be useful when implementing mutex priority inheritance.
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 |