mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 10:18:15 +09:00
Kernel: Add kernel-level timer queue (heavily based on @juliusf's work)
PR #591 defines the rationale for kernel-level timers. They're most immediately useful for TCP retransmission, but will most likely see use in many other areas as well.
This commit is contained in:
parent
13cf7e76b9
commit
115b315375
Notes:
sideshowbarker
2024-07-19 10:38:12 +09:00
Author: https://github.com/deoxxa
Commit: 115b315375
Pull-request: https://github.com/SerenityOS/serenity/pull/925
4 changed files with 124 additions and 0 deletions
|
@ -5,6 +5,7 @@
|
|||
#include <Kernel/Profiling.h>
|
||||
#include <Kernel/RTC.h>
|
||||
#include <Kernel/Scheduler.h>
|
||||
#include <Kernel/TimerQueue.h>
|
||||
|
||||
//#define LOG_EVERY_CONTEXT_SWITCH
|
||||
//#define SCHEDULER_DEBUG
|
||||
|
@ -579,6 +580,8 @@ void Scheduler::timer_tick(RegisterDump& regs)
|
|||
}
|
||||
}
|
||||
|
||||
TimerQueue::the().fire();
|
||||
|
||||
if (current->tick())
|
||||
return;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue