summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSebastian Valle <subv2112@gmail.com>2016-12-16 14:48:22 +0100
committerGitHub <noreply@github.com>2016-12-16 14:48:22 +0100
commitd25a37966d705c5b2e672d0c146b09d1efb893f3 (patch)
treeb5fb8c8be9ad32336b8aa6f8b587b0db245c749a /src
parentMerge pull request #2260 from Subv/scheduling (diff)
parentKernel: remove object's waiting thread if it is dead (diff)
downloadyuzu-d25a37966d705c5b2e672d0c146b09d1efb893f3.tar
yuzu-d25a37966d705c5b2e672d0c146b09d1efb893f3.tar.gz
yuzu-d25a37966d705c5b2e672d0c146b09d1efb893f3.tar.bz2
yuzu-d25a37966d705c5b2e672d0c146b09d1efb893f3.tar.lz
yuzu-d25a37966d705c5b2e672d0c146b09d1efb893f3.tar.xz
yuzu-d25a37966d705c5b2e672d0c146b09d1efb893f3.tar.zst
yuzu-d25a37966d705c5b2e672d0c146b09d1efb893f3.zip
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/kernel/kernel.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp
index 209d35270..1db8e102f 100644
--- a/src/core/hle/kernel/kernel.cpp
+++ b/src/core/hle/kernel/kernel.cpp
@@ -35,7 +35,8 @@ void WaitObject::RemoveWaitingThread(Thread* thread) {
SharedPtr<Thread> WaitObject::GetHighestPriorityReadyThread() {
// Remove the threads that are ready or already running from our waitlist
boost::range::remove_erase_if(waiting_threads, [](const SharedPtr<Thread>& thread) {
- return thread->status == THREADSTATUS_RUNNING || thread->status == THREADSTATUS_READY;
+ return thread->status == THREADSTATUS_RUNNING || thread->status == THREADSTATUS_READY ||
+ thread->status == THREADSTATUS_DEAD;
});
// TODO(Subv): This call should be performed inside the loop below to check if an object can be