summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/kernel.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-03-29 02:42:24 +0100
committerGitHub <noreply@github.com>2019-03-29 02:42:24 +0100
commitf770c17d011e76cb268df5ba5d687609a0f514d4 (patch)
tree95638bae93a71b58d4c58ff5adb03d1256b3cb8a /src/core/hle/kernel/kernel.cpp
parentMerge pull request #2265 from FernandoS27/multilevelqueue (diff)
parentFix small bug that kept a thread as a condvar thread after being signalled. (diff)
downloadyuzu-f770c17d011e76cb268df5ba5d687609a0f514d4.tar
yuzu-f770c17d011e76cb268df5ba5d687609a0f514d4.tar.gz
yuzu-f770c17d011e76cb268df5ba5d687609a0f514d4.tar.bz2
yuzu-f770c17d011e76cb268df5ba5d687609a0f514d4.tar.lz
yuzu-f770c17d011e76cb268df5ba5d687609a0f514d4.tar.xz
yuzu-f770c17d011e76cb268df5ba5d687609a0f514d4.tar.zst
yuzu-f770c17d011e76cb268df5ba5d687609a0f514d4.zip
Diffstat (limited to 'src/core/hle/kernel/kernel.cpp')
-rw-r--r--src/core/hle/kernel/kernel.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp
index a7e4ddc05..3b73be67b 100644
--- a/src/core/hle/kernel/kernel.cpp
+++ b/src/core/hle/kernel/kernel.cpp
@@ -62,7 +62,8 @@ static void ThreadWakeupCallback(u64 thread_handle, [[maybe_unused]] s64 cycles_
if (thread->GetMutexWaitAddress() != 0 || thread->GetCondVarWaitAddress() != 0 ||
thread->GetWaitHandle() != 0) {
- ASSERT(thread->GetStatus() == ThreadStatus::WaitMutex);
+ ASSERT(thread->GetStatus() == ThreadStatus::WaitMutex ||
+ thread->GetStatus() == ThreadStatus::WaitCondVar);
thread->SetMutexWaitAddress(0);
thread->SetCondVarWaitAddress(0);
thread->SetWaitHandle(0);