forked from suyu/suyu
wait_object: Make wait behavior only require one object to signal.
- This was holdover from citra.
This commit is contained in:
parent
3a0c1e79f8
commit
7a547b9342
1 changed files with 2 additions and 11 deletions
|
@ -50,17 +50,8 @@ std::shared_ptr<Thread> WaitObject::GetHighestPriorityReadyThread() const {
|
||||||
if (ShouldWait(thread.get()))
|
if (ShouldWait(thread.get()))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
// A thread is ready to run if it's either in ThreadStatus::WaitSynch
|
candidate = thread.get();
|
||||||
// and the rest of the objects it is waiting on are ready.
|
candidate_priority = thread->GetPriority();
|
||||||
bool ready_to_run = true;
|
|
||||||
if (thread_status == ThreadStatus::WaitSynch) {
|
|
||||||
ready_to_run = thread->AllWaitObjectsReady();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (ready_to_run) {
|
|
||||||
candidate = thread.get();
|
|
||||||
candidate_priority = thread->GetPriority();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return SharedFrom(candidate);
|
return SharedFrom(candidate);
|
||||||
|
|
Loading…
Reference in a new issue