mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-21 08:26:30 +00:00
Use LinkedList to store WorkItem to avoid additional heap allocation
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
2ac6e0e126
commit
846b3ba169
@ -95,7 +95,7 @@ pub fn sys_timer_create(
|
||||
};
|
||||
|
||||
let work_func = sent_signal;
|
||||
let work_item = Arc::new(WorkItem::new(work_func));
|
||||
let work_item = WorkItem::new(work_func);
|
||||
let func = move || {
|
||||
submit_work_item(
|
||||
work_item.clone(),
|
||||
|
Reference in New Issue
Block a user