소스 검색

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.
Subv 8 년 전
부모
커밋
fd500d3da6
1개의 변경된 파일0개의 추가작업 그리고 1개의 파일을 삭제
  1. 0 1
      src/core/hle/kernel/mutex.cpp

+ 0 - 1
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;
     }