From fd500d3da6f31bfaf749a5262b804a707860f442 Mon Sep 17 00:00:00 2001 From: Subv Date: Sun, 20 May 2018 14:41:58 -0500 Subject: Mutex: Do not assert when the mutex waiting threads list isn't empty on mutex release. A thread may own multiple mutexes at the same time, and only release one of them while other threads are waiting for the other mutexes. --- src/core/hle/kernel/mutex.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'src') diff --git a/src/core/hle/kernel/mutex.cpp b/src/core/hle/kernel/mutex.cpp index 63733ad79..bc144f3de 100644 --- a/src/core/hle/kernel/mutex.cpp +++ b/src/core/hle/kernel/mutex.cpp @@ -104,7 +104,6 @@ ResultCode Mutex::Release(VAddr address) { // There are no more threads waiting for the mutex, release it completely. if (thread == nullptr) { - ASSERT(GetCurrentThread()->wait_mutex_threads.empty()); Memory::Write32(address, 0); return RESULT_SUCCESS; } -- cgit v1.2.3