diff options
| author | bunnei <bunneidev@gmail.com> | 2020-02-05 23:26:32 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-05 23:26:32 -0500 |
| commit | 1b01c3036d2907667def43b26b8797e619508e04 (patch) | |
| tree | 6056b75468249a9841a0e521d7a381efd087e0f2 /src/core/hle/kernel/wait_object.cpp | |
| parent | a0b4be426271ca497d8c113bd0ace3c95a6a35ad (diff) | |
| parent | ba53543da6126b5fe7b3f26e2688272cf11024a3 (diff) | |
Merge pull request #3366 from bunnei/swkbd-fixes
applets: Fixes for software keyboard and transfer memory.
Diffstat (limited to 'src/core/hle/kernel/wait_object.cpp')
| -rw-r--r-- | src/core/hle/kernel/wait_object.cpp | 13 |
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); |
