aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/k_scheduler.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-01-17 18:48:14 -0800
committerbunnei <bunneidev@gmail.com>2022-01-20 17:08:00 -0800
commit46a620f9d7c0fa2a4f1143ebf28bba4fee12d1a1 (patch)
tree5d1a3174fc8285e9388277e7e7d877de0425aa82 /src/core/hle/kernel/k_scheduler.cpp
parent0b37e7cb39cb96857f3074f2bc5c7912b99baf9a (diff)
hle: kernel: KThread: Decrease DummyThread priority to ensure it is never scheduled.
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 5d39a1d4a..1b2a01869 100644
--- a/src/core/hle/kernel/k_scheduler.cpp
+++ b/src/core/hle/kernel/k_scheduler.cpp
@@ -741,6 +741,7 @@ void KScheduler::ScheduleImpl() {
// We never want to schedule a dummy thread, as these are only used by host threads for locking.
if (next_thread->GetThreadType() == ThreadType::Dummy) {
+ ASSERT_MSG(false, "Dummy threads should never be scheduled!");
next_thread = idle_thread;
}