mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 15:16:14 +00:00
Kernel: Remove memory allocations from the new Blocker API
This commit is contained in:
committed by
Andreas Kling
parent
99c5377653
commit
cd76b691fb
@@ -242,7 +242,7 @@ extern "C" [[noreturn]] void init()
|
||||
current->process().set_priority(Process::LowPriority);
|
||||
for (;;) {
|
||||
Thread::finalize_dying_threads();
|
||||
current->block(*new Thread::SemiPermanentBlocker(Thread::SemiPermanentBlocker::Reason::Lurking));
|
||||
current->block<Thread::SemiPermanentBlocker>(Thread::SemiPermanentBlocker::Reason::Lurking);
|
||||
Scheduler::yield();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user