diff options
| author | 2015-01-14 23:19:22 -0500 | |
|---|---|---|
| committer | 2015-01-21 18:41:58 -0500 | |
| commit | 5e77e2e1de73ce7786f52f2a74c28182fa4aa845 (patch) | |
| tree | d874f351cd8bc11757d50deba4fea1abefd323d2 /src/core/hle/kernel/kernel.h | |
| parent | Kernel: Added WaitObject and changed "waitable" objects inherit from it. (diff) | |
| download | yuzu-5e77e2e1de73ce7786f52f2a74c28182fa4aa845.tar.gz yuzu-5e77e2e1de73ce7786f52f2a74c28182fa4aa845.tar.xz yuzu-5e77e2e1de73ce7786f52f2a74c28182fa4aa845.zip | |
WaitObject: Added RemoveWaitingThread, fixed a bug, and cleanup.
Diffstat (limited to 'src/core/hle/kernel/kernel.h')
| -rw-r--r-- | src/core/hle/kernel/kernel.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/core/hle/kernel/kernel.h b/src/core/hle/kernel/kernel.h index a9af9de88..53b3f9143 100644 --- a/src/core/hle/kernel/kernel.h +++ b/src/core/hle/kernel/kernel.h | |||
| @@ -105,7 +105,13 @@ public: | |||
| 105 | void AddWaitingThread(Thread* thread); | 105 | void AddWaitingThread(Thread* thread); |
| 106 | 106 | ||
| 107 | /** | 107 | /** |
| 108 | * Resumes the next thread waiting on this object | 108 | * Removes a thread from waiting on this object (e.g. if it was resumed already) |
| 109 | * @param thread Pointer to thread to remove | ||
| 110 | */ | ||
| 111 | void RemoveWaitingThread(Thread* thead); | ||
| 112 | |||
| 113 | /** | ||
| 114 | * Resumes (and removes) the next thread waiting on this object | ||
| 109 | * @return Pointer to the thread that was resumed, nullptr if no threads are waiting | 115 | * @return Pointer to the thread that was resumed, nullptr if no threads are waiting |
| 110 | */ | 116 | */ |
| 111 | Thread* ResumeNextThread(); | 117 | Thread* ResumeNextThread(); |