Procházet zdrojové kódy

mutex: Update hasWaiters on release.

bunnei před 8 roky
rodič
revize
903beb43a8
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  1. 1 0
      src/core/hle/kernel/mutex.cpp

+ 1 - 0
src/core/hle/kernel/mutex.cpp

@@ -70,6 +70,7 @@ ResultCode Mutex::Release(Thread* thread) {
     holding_thread->held_mutexes.erase(this);
     holding_thread->UpdatePriority();
     SetHoldingThread(nullptr);
+    SetHasWaiters(!GetWaitingThreads().empty());
     WakeupAllWaitingThreads();
     Core::System::GetInstance().PrepareReschedule();