mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-05-20 01:59:01 +00:00
Kernel: Add Scheduler::is_initialized
This commit is contained in:
committed by
Andreas Kling
parent
8e9fb3766d
commit
cf1c8eb778
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user