mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-28 03:43:23 +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
@ -106,7 +106,7 @@ fn create_process_timer_callback(process_ref: &Weak<Process>) -> impl Fn() + Clo
|
||||
};
|
||||
|
||||
let work_func = Box::new(sent_signal);
|
||||
let work_item = Arc::new(WorkItem::new(work_func));
|
||||
let work_item = WorkItem::new(work_func);
|
||||
|
||||
move || {
|
||||
submit_work_item(
|
||||
|
Reference in New Issue
Block a user