summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/wait_object.cpp
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2019-07-04 05:21:48 +0200
committerbunnei <bunneidev@gmail.com>2020-02-06 05:06:53 +0100
commit7a547b934201863bc11246844ea24ab3b67be65e (patch)
tree7369f7d3f3f5eacefe8cacd802dbcc9864dd539f /src/core/hle/kernel/wait_object.cpp
parentam: Correct IPC object count mismatch. (diff)
downloadyuzu-7a547b934201863bc11246844ea24ab3b67be65e.tar
yuzu-7a547b934201863bc11246844ea24ab3b67be65e.tar.gz
yuzu-7a547b934201863bc11246844ea24ab3b67be65e.tar.bz2
yuzu-7a547b934201863bc11246844ea24ab3b67be65e.tar.lz
yuzu-7a547b934201863bc11246844ea24ab3b67be65e.tar.xz
yuzu-7a547b934201863bc11246844ea24ab3b67be65e.tar.zst
yuzu-7a547b934201863bc11246844ea24ab3b67be65e.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/kernel/wait_object.cpp13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/core/hle/kernel/wait_object.cpp b/src/core/hle/kernel/wait_object.cpp
index a0c806e8f..1838260fd 100644
--- a/src/core/hle/kernel/wait_object.cpp
+++ b/src/core/hle/kernel/wait_object.cpp
@@ -50,17 +50,8 @@ std::shared_ptr<Thread> WaitObject::GetHighestPriorityReadyThread() const {
if (ShouldWait(thread.get()))
continue;
- // A thread is ready to run if it's either in ThreadStatus::WaitSynch
- // and the rest of the objects it is waiting on are ready.
- 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();
- }
+ candidate = thread.get();
+ candidate_priority = thread->GetPriority();
}
return SharedFrom(candidate);