mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:38:10 +00:00
Kernel: Retire SchedulerData and add Thread lookup table
This allows us to get rid of the thread lists in SchedulerData. Also, instead of iterating over all threads to find a thread by id, just use a lookup table. In the rare case of having to iterate over all threads, just iterate the lookup table.
This commit is contained in:
parent
e55d227f93
commit
d5472426ec
5 changed files with 57 additions and 153 deletions
|
@ -162,6 +162,7 @@ extern "C" [[noreturn]] void init()
|
|||
}
|
||||
VirtualConsole::switch_to(0);
|
||||
|
||||
Thread::initialize();
|
||||
Process::initialize();
|
||||
Scheduler::initialize();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue