mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 00:48:11 +00:00
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:
parent
96de90ceef
commit
98929ba715
1 changed files with 0 additions and 1 deletions
|
@ -243,7 +243,6 @@ extern "C" [[noreturn]] void init()
|
||||||
for (;;) {
|
for (;;) {
|
||||||
Thread::finalize_dying_threads();
|
Thread::finalize_dying_threads();
|
||||||
(void)current->block<Thread::SemiPermanentBlocker>(Thread::SemiPermanentBlocker::Reason::Lurking);
|
(void)current->block<Thread::SemiPermanentBlocker>(Thread::SemiPermanentBlocker::Reason::Lurking);
|
||||||
Scheduler::yield();
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
Process::create_kernel_process("NetworkTask", NetworkTask_main);
|
Process::create_kernel_process("NetworkTask", NetworkTask_main);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue