yuzu-emu
/
yuzu-android
Archived
1
0
Fork 0

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.
This commit is contained in:
Subv 2018-05-20 14:41:58 -05:00
parent 1b5c02fc37
commit fd500d3da6
1 changed files with 0 additions and 1 deletions

View File

@ -104,7 +104,6 @@ ResultCode Mutex::Release(VAddr address) {
// There are no more threads waiting for the mutex, release it completely. // There are no more threads waiting for the mutex, release it completely.
if (thread == nullptr) { if (thread == nullptr) {
ASSERT(GetCurrentThread()->wait_mutex_threads.empty());
Memory::Write32(address, 0); Memory::Write32(address, 0);
return RESULT_SUCCESS; return RESULT_SUCCESS;
} }