mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-05-27 21:48:39 +00:00
Kernel: Take WorkQueue item as reference instead of pointer in do_queue
This commit is contained in:
@@ -47,10 +47,10 @@ UNMAP_AFTER_INIT WorkQueue::WorkQueue(StringView name)
|
||||
m_thread = thread.release_nonnull();
|
||||
}
|
||||
|
||||
void WorkQueue::do_queue(WorkItem* item)
|
||||
void WorkQueue::do_queue(WorkItem& item)
|
||||
{
|
||||
m_items.with([&](auto& items) {
|
||||
items.append(*item);
|
||||
items.append(item);
|
||||
});
|
||||
m_wait_queue.wake_one();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user