summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/k_scheduler.cpp
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2022-07-10 00:47:32 +0200
committerLiam <byteslice@airmail.cc>2022-07-15 04:47:18 +0200
commit77137583cd49526a492293d47477657c23ca164f (patch)
tree7ab3fdc7a4dd8a02cdedf2004f3d21403022d36d /src/core/hle/kernel/k_scheduler.cpp
parentkernel: fix single-core preemption points (diff)
downloadyuzu-77137583cd49526a492293d47477657c23ca164f.tar
yuzu-77137583cd49526a492293d47477657c23ca164f.tar.gz
yuzu-77137583cd49526a492293d47477657c23ca164f.tar.bz2
yuzu-77137583cd49526a492293d47477657c23ca164f.tar.lz
yuzu-77137583cd49526a492293d47477657c23ca164f.tar.xz
yuzu-77137583cd49526a492293d47477657c23ca164f.tar.zst
yuzu-77137583cd49526a492293d47477657c23ca164f.zip
Diffstat (limited to 'src/core/hle/kernel/k_scheduler.cpp')
-rw-r--r--src/core/hle/kernel/k_scheduler.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/hle/kernel/k_scheduler.cpp b/src/core/hle/kernel/k_scheduler.cpp
index 230ca3b95..d9ba8e409 100644
--- a/src/core/hle/kernel/k_scheduler.cpp
+++ b/src/core/hle/kernel/k_scheduler.cpp
@@ -70,6 +70,7 @@ void KScheduler::EnableScheduling(KernelCore& kernel, u64 cores_needing_scheduli
GetCurrentThread(kernel).IfDummyThreadTryWait();
}
GetCurrentThread(kernel).EnableDispatch();
+ ASSERT(GetCurrentThread(kernel).GetState() != ThreadState::Waiting);
return;
}