diff options
author | Subv <subv2112@gmail.com> | 2017-01-01 22:53:22 +0100 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2017-01-04 21:58:45 +0100 |
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 yuzu-e6a7723f2f4b62279cd4f6d4b48eb02a9b60ffb6.tar.gz yuzu-e6a7723f2f4b62279cd4f6d4b48eb02a9b60ffb6.tar.bz2 yuzu-e6a7723f2f4b62279cd4f6d4b48eb02a9b60ffb6.tar.lz yuzu-e6a7723f2f4b62279cd4f6d4b48eb02a9b60ffb6.tar.xz yuzu-e6a7723f2f4b62279cd4f6d4b48eb02a9b60ffb6.tar.zst yuzu-e6a7723f2f4b62279cd4f6d4b48eb02a9b60ffb6.zip |
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>; class WaitObject : public Object { public: /** - * Check if the current thread should wait until the object is available + * Check if the specified thread should wait until the object is available + * @param thread The thread about which we're deciding. * @return True if the current thread should wait due to this object being unavailable */ - virtual bool ShouldWait() = 0; + virtual bool ShouldWait(Thread* thread) const = 0; - /// Acquire/lock the object if it is available - virtual void Acquire() = 0; + /// Acquire/lock the object for the specified thread if it is available + virtual void Acquire(Thread* thread) = 0; /** * Add a thread to wait on this object |