Skip to content
Snippets Groups Projects
Verified Commit 57288284 authored by Yaroslav Dynnikov's avatar Yaroslav Dynnikov
Browse files

Address review comments: mailbox signal

parent 62084c85
Branches
Tags
1 merge request!71Fair raft join
...@@ -28,7 +28,7 @@ impl<T> Mailbox<T> { ...@@ -28,7 +28,7 @@ impl<T> Mailbox<T> {
pub fn send(&self, v: T) { pub fn send(&self, v: T) {
self.0.content.borrow_mut().push(v); self.0.content.borrow_mut().push(v);
self.0.cond.broadcast(); self.0.cond.signal();
} }
pub fn recv_timeout(&self, timeout: Duration) -> Vec<T> { pub fn recv_timeout(&self, timeout: Duration) -> Vec<T> {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment