summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-02-05 21:54:10 -0500
committerbunnei <bunneidev@gmail.com>2018-02-05 21:54:10 -0500
commit903beb43a84e08fc37cd58110c91dfbadf0faf0f (patch)
tree7130448498d5c1c726c0a9e49e1524da7d507158 /src
parent1963222933d7b354979a5f6a820804162d799a2c (diff)
mutex: Update hasWaiters on release.
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/kernel/mutex.cpp1
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) {
holding_thread->held_mutexes.erase(this);
holding_thread->UpdatePriority();
SetHoldingThread(nullptr);
+ SetHasWaiters(!GetWaitingThreads().empty());
WakeupAllWaitingThreads();
Core::System::GetInstance().PrepareReschedule();