summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/mutex.cpp
diff options
context:
space:
mode:
authorGravatar bunnei2018-02-05 21:54:10 -0500
committerGravatar bunnei2018-02-05 21:54:10 -0500
commit903beb43a84e08fc37cd58110c91dfbadf0faf0f (patch)
tree7130448498d5c1c726c0a9e49e1524da7d507158 /src/core/hle/kernel/mutex.cpp
parenthid: Stub ActivateTouchScreen and SetNpadJoyHoldType. (diff)
downloadyuzu-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.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) {
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