summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-02-06 05:14:40 +0100
committerGitHub <noreply@github.com>2018-02-06 05:14:40 +0100
commit1cd9438945629d8d56f653c32ee4ddce4f7580a0 (patch)
tree3bfaeed6762338c883af351cef9e27021c3e0268 /src/core/hle/kernel
parentExtra nvdrv support (#162) (diff)
parentmutex: Update hasWaiters on release. (diff)
downloadyuzu-1cd9438945629d8d56f653c32ee4ddce4f7580a0.tar
yuzu-1cd9438945629d8d56f653c32ee4ddce4f7580a0.tar.gz
yuzu-1cd9438945629d8d56f653c32ee4ddce4f7580a0.tar.bz2
yuzu-1cd9438945629d8d56f653c32ee4ddce4f7580a0.tar.lz
yuzu-1cd9438945629d8d56f653c32ee4ddce4f7580a0.tar.xz
yuzu-1cd9438945629d8d56f653c32ee4ddce4f7580a0.tar.zst
yuzu-1cd9438945629d8d56f653c32ee4ddce4f7580a0.zip
Diffstat (limited to 'src/core/hle/kernel')
-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();