Add schedule after WorkItem enqueue

This commit is contained in:
Yuke Peng
2024-06-08 16:17:00 +08:00
committed by Tate, Hongliang Tian
parent 4afac4d5ac
commit 89ce1f4df9
3 changed files with 17 additions and 3 deletions

View File

@ -141,6 +141,9 @@ impl WorkQueue {
.lock_irq_disabled()
.pending_work_items
.push(work_item);
if let Some(worker_pool) = self.worker_pool.upgrade() {
worker_pool.schedule()
}
true
}