mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:28:12 +00:00
Kernel: Take WorkQueue item as reference instead of pointer in do_queue
This commit is contained in:
parent
1462211ccf
commit
bf16061142
2 changed files with 5 additions and 5 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue