aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/mutex.cpp
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-05-20 14:41:58 -0500
committerSubv <subv2112@gmail.com>2018-05-20 14:41:58 -0500
commitfe463e2a1ce716fa9e5c2328eb7d4f544ccab78a (patch)
treefedd63f0fe0734a42e03451b7266a1829e09f6d3 /src/core/hle/kernel/mutex.cpp
parent60644b9655b7d824abb95899835ec0bcf3de80f0 (diff)
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.
Diffstat (limited to 'src/core/hle/kernel/mutex.cpp')
-rw-r--r--src/core/hle/kernel/mutex.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/core/hle/kernel/mutex.cpp b/src/core/hle/kernel/mutex.cpp
index 63733ad79e..bc144f3dea 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;
}