1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-10 09:17:34 +00:00

Kernel: Add Scheduler::is_initialized

This commit is contained in:
Sahan Fernando 2021-06-12 23:32:56 +10:00 committed by Andreas Kling
parent 8e9fb3766d
commit cf1c8eb778
2 changed files with 7 additions and 0 deletions

View file

@ -570,6 +570,12 @@ void Scheduler::dump_scheduler_state()
dump_thread_list();
}
bool Scheduler::is_initialized()
{
// The scheduler is initalized iff the idle thread exists
return Processor::idle_thread() != nullptr;
}
void dump_thread_list()
{
dbgln("Scheduler thread list for processor {}:", Processor::id());