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/mutex.cpp | |
| 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/mutex.cpp')
| -rw-r--r-- | src/core/hle/kernel/mutex.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/kernel/mutex.cpp b/src/core/hle/kernel/mutex.cpp index 355824e60..c170e55ff 100644 --- a/src/core/hle/kernel/mutex.cpp +++ b/src/core/hle/kernel/mutex.cpp | |||
| @@ -53,7 +53,7 @@ void MutexAcquireLock(Mutex* mutex, Handle thread = GetCurrentThread()->GetHandl | |||
| 53 | */ | 53 | */ |
| 54 | void ResumeWaitingThread(Mutex* mutex) { | 54 | void ResumeWaitingThread(Mutex* mutex) { |
| 55 | // Find the next waiting thread for the mutex... | 55 | // Find the next waiting thread for the mutex... |
| 56 | auto next_thread = mutex->ReleaseNextThread(); | 56 | auto next_thread = mutex->WakeupNextThread(); |
| 57 | if (next_thread != nullptr) { | 57 | if (next_thread != nullptr) { |
| 58 | MutexAcquireLock(mutex, next_thread->GetHandle()); | 58 | MutexAcquireLock(mutex, next_thread->GetHandle()); |
| 59 | } else { | 59 | } else { |