diff options
| author | 2018-02-05 21:54:10 -0500 | |
|---|---|---|
| committer | 2018-02-05 21:54:10 -0500 | |
| commit | 903beb43a84e08fc37cd58110c91dfbadf0faf0f (patch) | |
| tree | 7130448498d5c1c726c0a9e49e1524da7d507158 /src/core/hle/kernel/mutex.cpp | |
| parent | hid: Stub ActivateTouchScreen and SetNpadJoyHoldType. (diff) | |
| download | yuzu-903beb43a84e08fc37cd58110c91dfbadf0faf0f.tar.gz yuzu-903beb43a84e08fc37cd58110c91dfbadf0faf0f.tar.xz yuzu-903beb43a84e08fc37cd58110c91dfbadf0faf0f.zip | |
mutex: Update hasWaiters on release.
Diffstat (limited to 'src/core/hle/kernel/mutex.cpp')
| -rw-r--r-- | src/core/hle/kernel/mutex.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/hle/kernel/mutex.cpp b/src/core/hle/kernel/mutex.cpp index 4e86eb918..0b9dc700c 100644 --- a/src/core/hle/kernel/mutex.cpp +++ b/src/core/hle/kernel/mutex.cpp | |||
| @@ -70,6 +70,7 @@ ResultCode Mutex::Release(Thread* thread) { | |||
| 70 | holding_thread->held_mutexes.erase(this); | 70 | holding_thread->held_mutexes.erase(this); |
| 71 | holding_thread->UpdatePriority(); | 71 | holding_thread->UpdatePriority(); |
| 72 | SetHoldingThread(nullptr); | 72 | SetHoldingThread(nullptr); |
| 73 | SetHasWaiters(!GetWaitingThreads().empty()); | ||
| 73 | WakeupAllWaitingThreads(); | 74 | WakeupAllWaitingThreads(); |
| 74 | Core::System::GetInstance().PrepareReschedule(); | 75 | Core::System::GetInstance().PrepareReschedule(); |
| 75 | 76 | ||