diff options
Diffstat (limited to 'src/core/hle/kernel/kernel.cpp')
| -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_ | |||
| 66 | thread->SetMutexWaitAddress(0); | 66 | thread->SetMutexWaitAddress(0); |
| 67 | thread->SetCondVarWaitAddress(0); | 67 | thread->SetCondVarWaitAddress(0); |
| 68 | thread->SetWaitHandle(0); | 68 | thread->SetWaitHandle(0); |
| 69 | if (thread->GetStatus() == ThreadStatus::WaitCondVar) { | ||
| 70 | thread->GetOwnerProcess()->RemoveConditionVariableThread(thread); | ||
| 71 | } | ||
| 69 | 72 | ||
| 70 | auto* const lock_owner = thread->GetLockOwner(); | 73 | auto* const lock_owner = thread->GetLockOwner(); |
| 71 | // Threads waking up by timeout from WaitProcessWideKey do not perform priority inheritance | 74 | // Threads waking up by timeout from WaitProcessWideKey do not perform priority inheritance |