mirror of
				https://git.suyu.dev/suyu/suyu
				synced 2025-10-30 15:39:02 -05:00 
			
		
		
		
	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:
		| @@ -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; | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Subv
					Subv