mirror of
				https://git.zaroz.cloud/nintendo-back-up/yuzu/yuzu-mainline.git
				synced 2025-03-21 01:53:15 +00:00 
			
		
		
		
	mutex: Update hasWaiters on release.
This commit is contained in:
		
							parent
							
								
									1963222933
								
							
						
					
					
						commit
						903beb43a8
					
				@ -70,6 +70,7 @@ ResultCode Mutex::Release(Thread* thread) {
 | 
				
			|||||||
    holding_thread->held_mutexes.erase(this);
 | 
					    holding_thread->held_mutexes.erase(this);
 | 
				
			||||||
    holding_thread->UpdatePriority();
 | 
					    holding_thread->UpdatePriority();
 | 
				
			||||||
    SetHoldingThread(nullptr);
 | 
					    SetHoldingThread(nullptr);
 | 
				
			||||||
 | 
					    SetHasWaiters(!GetWaitingThreads().empty());
 | 
				
			||||||
    WakeupAllWaitingThreads();
 | 
					    WakeupAllWaitingThreads();
 | 
				
			||||||
    Core::System::GetInstance().PrepareReschedule();
 | 
					    Core::System::GetInstance().PrepareReschedule();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user