diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-11-15 01:13:18 +0100 |
---|---|---|
committer | FernandoS27 <fsahmkow27@gmail.com> | 2019-11-21 15:46:55 +0100 |
commit | 2d16507f9fa06e868349d6f57a78585aec8628fd (patch) | |
tree | 7931e2bb9db6d55e7be760f1a1dcff14de09db78 /src/core/hle/kernel/kernel.cpp | |
parent | Merge pull request #3142 from ReinUsesLisp/depbar-log (diff) | |
download | yuzu-2d16507f9fa06e868349d6f57a78585aec8628fd.tar yuzu-2d16507f9fa06e868349d6f57a78585aec8628fd.tar.gz yuzu-2d16507f9fa06e868349d6f57a78585aec8628fd.tar.bz2 yuzu-2d16507f9fa06e868349d6f57a78585aec8628fd.tar.lz yuzu-2d16507f9fa06e868349d6f57a78585aec8628fd.tar.xz yuzu-2d16507f9fa06e868349d6f57a78585aec8628fd.tar.zst yuzu-2d16507f9fa06e868349d6f57a78585aec8628fd.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/kernel/kernel.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp index f94ac150d..cdf7944f7 100644 --- a/src/core/hle/kernel/kernel.cpp +++ b/src/core/hle/kernel/kernel.cpp @@ -66,6 +66,9 @@ static void ThreadWakeupCallback(u64 thread_handle, [[maybe_unused]] s64 cycles_ thread->SetMutexWaitAddress(0); thread->SetCondVarWaitAddress(0); thread->SetWaitHandle(0); + if (thread->GetStatus() == ThreadStatus::WaitCondVar) { + thread->GetOwnerProcess()->RemoveConditionVariableThread(thread); + } auto* const lock_owner = thread->GetLockOwner(); // Threads waking up by timeout from WaitProcessWideKey do not perform priority inheritance |