summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-06-02 21:06:35 +0200
committerSubv <subv2112@gmail.com>2018-06-02 21:06:35 +0200
commit9cd87a6352d98194c2a36ec889cf6ff541a6610e (patch)
tree7589782b58ec8d4984972f6ce6a8d766d4318b97 /src/core
parentMerge pull request #492 from mailwl/time (diff)
downloadyuzu-9cd87a6352d98194c2a36ec889cf6ff541a6610e.tar
yuzu-9cd87a6352d98194c2a36ec889cf6ff541a6610e.tar.gz
yuzu-9cd87a6352d98194c2a36ec889cf6ff541a6610e.tar.bz2
yuzu-9cd87a6352d98194c2a36ec889cf6ff541a6610e.tar.lz
yuzu-9cd87a6352d98194c2a36ec889cf6ff541a6610e.tar.xz
yuzu-9cd87a6352d98194c2a36ec889cf6ff541a6610e.tar.zst
yuzu-9cd87a6352d98194c2a36ec889cf6ff541a6610e.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/kernel/thread.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp
index 0075e4a0f..cffa7ca83 100644
--- a/src/core/hle/kernel/thread.cpp
+++ b/src/core/hle/kernel/thread.cpp
@@ -133,8 +133,11 @@ static void ThreadWakeupCallback(u64 thread_handle, int cycles_late) {
auto lock_owner = thread->lock_owner;
// Threads waking up by timeout from WaitProcessWideKey do not perform priority inheritance
- // and don't have a lock owner.
- ASSERT(lock_owner == nullptr);
+ // and don't have a lock owner unless SignalProcessWideKey was called first and the thread
+ // wasn't awakened due to the mutex already being acquired.
+ if (lock_owner) {
+ lock_owner->RemoveMutexWaiter(thread);
+ }
}
if (resume)