1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 19:15:09 +00:00

Kernel: Use a WaitQueue to implement finalizer wakeup

This gets rid of the special "Lurking" thread state and replaces it
with a generic WaitQueue :^)
This commit is contained in:
Andreas Kling 2019-12-01 19:17:17 +01:00
parent 5a45376180
commit 8bb98aa31b
5 changed files with 9 additions and 9 deletions

View file

@ -661,6 +661,9 @@ void Thread::set_state(State new_state)
if (m_process.pid() != 0) {
Scheduler::update_state_for_thread(*this);
}
if (new_state == Dying)
g_finalizer_wait_queue->wake_all();
}
String Thread::backtrace(ProcessInspectionHandle&) const