mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-26 19:03:27 +00:00
Revise the public APIs of WaitQueue
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
140640c5d6
commit
a664f1a9fc
@ -87,11 +87,7 @@ impl LocalWorkerPool {
|
||||
}
|
||||
|
||||
fn wake_worker(&self) -> bool {
|
||||
if !self.idle_wait_queue.is_empty() {
|
||||
self.idle_wait_queue.wake_one();
|
||||
return true;
|
||||
}
|
||||
false
|
||||
self.idle_wait_queue.wake_one()
|
||||
}
|
||||
|
||||
fn has_pending_work_items(&self) -> bool {
|
||||
|
Reference in New Issue
Block a user