diff options
| author | 2015-01-20 18:20:47 -0500 | |
|---|---|---|
| committer | 2015-01-21 20:48:30 -0500 | |
| commit | f09806aed24b2f7de7d969cbfdb3b9d18ab90c61 (patch) | |
| tree | 2c8ae1e650954dcc7342179a0e3202cd64fae8cf /src/core/hle/kernel/kernel.h | |
| parent | Kernel: Changed "ShouldWait" to return bool and "Acquire" to return void. (diff) | |
| download | yuzu-f09806aed24b2f7de7d969cbfdb3b9d18ab90c61.tar.gz yuzu-f09806aed24b2f7de7d969cbfdb3b9d18ab90c61.tar.xz yuzu-f09806aed24b2f7de7d969cbfdb3b9d18ab90c61.zip | |
Kernel: Renamed some functions for clarity.
- ReleaseNextThread->WakeupNextThread
- ReleaseAllWaitingThreads->WakeupAllWaitingThreads.
Diffstat (limited to 'src/core/hle/kernel/kernel.h')
| -rw-r--r-- | src/core/hle/kernel/kernel.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/hle/kernel/kernel.h b/src/core/hle/kernel/kernel.h index c26726223..3828efbea 100644 --- a/src/core/hle/kernel/kernel.h +++ b/src/core/hle/kernel/kernel.h | |||
| @@ -138,13 +138,13 @@ public: | |||
| 138 | void RemoveWaitingThread(Thread* thead); | 138 | void RemoveWaitingThread(Thread* thead); |
| 139 | 139 | ||
| 140 | /** | 140 | /** |
| 141 | * Releases (and removes) the next thread waiting on this object | 141 | * Wake up the next thread waiting on this object |
| 142 | * @return Pointer to the thread that was resumed, nullptr if no threads are waiting | 142 | * @return Pointer to the thread that was resumed, nullptr if no threads are waiting |
| 143 | */ | 143 | */ |
| 144 | Thread* ReleaseNextThread(); | 144 | Thread* WakeupNextThread(); |
| 145 | 145 | ||
| 146 | /// Releases all threads waiting on this object | 146 | /// Wake up all threads waiting on this object |
| 147 | void ReleaseAllWaitingThreads(); | 147 | void WakeupAllWaitingThreads(); |
| 148 | 148 | ||
| 149 | private: | 149 | private: |
| 150 | std::vector<Thread*> waiting_threads; ///< Threads waiting for this object to become available | 150 | std::vector<Thread*> waiting_threads; ///< Threads waiting for this object to become available |