Finalizer: Don't double-yield

Block will yield for us, so there's no reason to return control to the
scheduler immediately after we just blocked.
This commit is contained in:
Robin Burchell 2019-07-20 11:13:42 +02:00 committed by Andreas Kling
parent 96de90ceef
commit 98929ba715
Notes: sideshowbarker 2024-07-19 13:07:37 +09:00

View file

@ -243,7 +243,6 @@ extern "C" [[noreturn]] void init()
for (;;) {
Thread::finalize_dying_threads();
(void)current->block<Thread::SemiPermanentBlocker>(Thread::SemiPermanentBlocker::Reason::Lurking);
Scheduler::yield();
}
});
Process::create_kernel_process("NetworkTask", NetworkTask_main);