diff options
author | Sebastian Valle <subv2112@gmail.com> | 2017-01-05 18:55:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-05 18:55:01 +0100 |
commit | f20d872643654c574f73a263f032613046900f07 (patch) | |
tree | 021284c18034d053c81928fa19d2efb6658451fb /src/core/hle/kernel/kernel.h | |
parent | Merge pull request #2407 from jroweboy/nightly-deploy (diff) | |
parent | Kernel: Add some asserts to enforce the invariants in the scheduler. (diff) | |
download | yuzu-f20d872643654c574f73a263f032613046900f07.tar yuzu-f20d872643654c574f73a263f032613046900f07.tar.gz yuzu-f20d872643654c574f73a263f032613046900f07.tar.bz2 yuzu-f20d872643654c574f73a263f032613046900f07.tar.lz yuzu-f20d872643654c574f73a263f032613046900f07.tar.xz yuzu-f20d872643654c574f73a263f032613046900f07.tar.zst yuzu-f20d872643654c574f73a263f032613046900f07.zip |
Diffstat (limited to 'src/core/hle/kernel/kernel.h')
-rw-r--r-- | src/core/hle/kernel/kernel.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/core/hle/kernel/kernel.h b/src/core/hle/kernel/kernel.h index 9503e7d04..05097824b 100644 --- a/src/core/hle/kernel/kernel.h +++ b/src/core/hle/kernel/kernel.h @@ -132,25 +132,26 @@ 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 * @param thread Pointer to thread to add */ - void AddWaitingThread(SharedPtr<Thread> thread); + virtual void AddWaitingThread(SharedPtr<Thread> thread); /** * Removes a thread from waiting on this object (e.g. if it was resumed already) * @param thread Pointer to thread to remove */ - void RemoveWaitingThread(Thread* thread); + virtual void RemoveWaitingThread(Thread* thread); /** * Wake up all threads waiting on this object that can be awoken, in priority order, |