diff --git a/runtime/src/waitable_condvar.rs b/runtime/src/waitable_condvar.rs index 8ad7e33662..b83441c0c9 100644 --- a/runtime/src/waitable_condvar.rs +++ b/runtime/src/waitable_condvar.rs @@ -15,6 +15,9 @@ impl WaitableCondvar { pub fn notify_all(&self) { self.event.notify_all(); } + pub fn notify_one(&self) { + self.event.notify_one(); + } pub fn wait_timeout(&self, timeout: Duration) -> bool { let lock = self.mutex.lock().unwrap(); let res = self.event.wait_timeout(lock, timeout).unwrap();