mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +00:00
Kernel: Take WorkQueue item as reference instead of pointer in do_queue
This commit is contained in:
parent
1462211ccf
commit
bf16061142
Notes:
sideshowbarker
2024-07-17 11:38:42 +09:00
Author: https://github.com/supercomputer7
Commit: bf16061142
Pull-request: https://github.com/SerenityOS/serenity/pull/12969
Reviewed-by: https://github.com/bgianfo
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