mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-24 09:53:24 +00:00
Avoid adding worker during workqueue enqueueing
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
7e2e9cebf6
commit
2ac6e0e126
@ -142,9 +142,7 @@ impl WorkQueue {
|
|||||||
.lock()
|
.lock()
|
||||||
.pending_work_items
|
.pending_work_items
|
||||||
.push(work_item);
|
.push(work_item);
|
||||||
if let Some(worker_pool) = self.worker_pool.upgrade() {
|
|
||||||
worker_pool.schedule()
|
|
||||||
}
|
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user