Revise the public APIs of WaitQueue

This commit is contained in:
Ruihan Li
2024-05-31 10:54:33 +08:00
committed by Tate, Hongliang Tian
parent 140640c5d6
commit a664f1a9fc
2 changed files with 38 additions and 35 deletions

View File

@ -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 {