Use LinkedList to store WorkItem to avoid additional heap allocation

This commit is contained in:
Chen Chengjun
2024-11-01 10:14:28 +08:00
committed by Tate, Hongliang Tian
parent 2ac6e0e126
commit 846b3ba169
5 changed files with 28 additions and 18 deletions

View File

@ -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(),