Warn when RemoveThread is called on a non-inserted thread

This commit is contained in:
PixelyIon 2022-11-30 04:07:30 +05:30 committed by Mark Collins
parent 3a6f205e6f
commit e192d4e5c1

View File

@ -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;