mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-23 09:23:25 +00:00
Add schedule after WorkItem enqueue
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
4afac4d5ac
commit
89ce1f4df9
@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user