mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-24 13:35:12 +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
Notes:
sideshowbarker
2024-07-19 13:07:37 +09:00
Author: https://github.com/rburchell Commit: https://github.com/SerenityOS/serenity/commit/98929ba715d Pull-request: https://github.com/SerenityOS/serenity/pull/351
1 changed files with 0 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue