Kernel: Remove memory allocations from the new Blocker API

This commit is contained in:
Robin Burchell 2019-07-19 10:12:50 +02:00 committed by Andreas Kling
commit cd76b691fb
Notes: sideshowbarker 2024-07-19 13:09:12 +09:00
6 changed files with 27 additions and 27 deletions

View file

@ -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();
}
});