1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:57:35 +00:00

Kernel: Mark WorkQueue initailzation functions as UNMAP_AFTER_INIT

This commit is contained in:
Brian Gianforcaro 2021-06-09 00:51:36 -07:00 committed by Andreas Kling
parent b5d388a9b3
commit c8b6bd4b97

View file

@ -13,12 +13,12 @@ namespace Kernel {
WorkQueue* g_io_work; WorkQueue* g_io_work;
void WorkQueue::initialize() UNMAP_AFTER_INIT void WorkQueue::initialize()
{ {
g_io_work = new WorkQueue("IO WorkQueue"); g_io_work = new WorkQueue("IO WorkQueue");
} }
WorkQueue::WorkQueue(const char* name) UNMAP_AFTER_INIT WorkQueue::WorkQueue(const char* name)
{ {
RefPtr<Thread> thread; RefPtr<Thread> thread;
Process::create_kernel_process(thread, name, [this] { Process::create_kernel_process(thread, name, [this] {