mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:48:11 +00:00
Kernel: Use TimerQueue for SIGALRM
This commit is contained in:
parent
601a688b6f
commit
4c1e27ec65
6 changed files with 43 additions and 27 deletions
|
@ -137,15 +137,6 @@ bool Scheduler::pick_next()
|
|||
current_thread->set_state(Thread::Dying);
|
||||
}
|
||||
|
||||
Process::for_each([&](Process& process) {
|
||||
if (process.m_alarm_deadline && TimeManagement::the().uptime_ms() > process.m_alarm_deadline) {
|
||||
process.m_alarm_deadline = 0;
|
||||
// FIXME: Should we observe this signal somehow?
|
||||
(void)process.send_signal(SIGALRM, nullptr);
|
||||
}
|
||||
return IterationDecision::Continue;
|
||||
});
|
||||
|
||||
#ifdef SCHEDULER_RUNNABLE_DEBUG
|
||||
dbg() << "Scheduler[" << Processor::current().id() << "]: Non-runnables:";
|
||||
Scheduler::for_each_nonrunnable([&](Thread& thread) -> IterationDecision {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue