diff options
author | bunnei <bunneidev@gmail.com> | 2018-02-06 05:14:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-06 05:14:40 +0100 |
commit | 1cd9438945629d8d56f653c32ee4ddce4f7580a0 (patch) | |
tree | 3bfaeed6762338c883af351cef9e27021c3e0268 /src/core/hle/kernel | |
parent | Extra nvdrv support (#162) (diff) | |
parent | mutex: Update hasWaiters on release. (diff) | |
download | yuzu-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.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) { holding_thread->held_mutexes.erase(this); holding_thread->UpdatePriority(); SetHoldingThread(nullptr); + SetHasWaiters(!GetWaitingThreads().empty()); WakeupAllWaitingThreads(); Core::System::GetInstance().PrepareReschedule(); |