From e192d4e5c1628f7fd2e301861c93f9978d19bd29 Mon Sep 17 00:00:00 2001 From: PixelyIon Date: Wed, 30 Nov 2022 04:07:30 +0530 Subject: [PATCH] Warn when `RemoveThread` is called on a non-inserted thread --- app/src/main/cpp/skyline/kernel/scheduler.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/cpp/skyline/kernel/scheduler.cpp b/app/src/main/cpp/skyline/kernel/scheduler.cpp index 7ea3db87..7576d75b 100644 --- a/app/src/main/cpp/skyline/kernel/scheduler.cpp +++ b/app/src/main/cpp/skyline/kernel/scheduler.cpp @@ -273,6 +273,8 @@ namespace skyline::kernel { if (it != core.queue.end()) (*it)->scheduleCondition.notify_one(); // We need to wake the thread at the front of the queue, if we were at the front previously } + } else { + Logger::Warn("T{} was not in C{}'s queue", thread->id, thread->coreId); } } else { thread->insertThreadOnResume = false;