mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +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
Notes:
sideshowbarker
2024-07-18 22:47:19 +09:00
Author: https://github.com/tomuta
Commit: d5472426ec
Pull-request: https://github.com/SerenityOS/serenity/pull/5144
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/awesomekling
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