Open the gate, releasing all waiting threads.
(&self)
| 36 | |
| 37 | /// Open the gate, releasing all waiting threads. |
| 38 | pub fn open(&self) { |
| 39 | let mut open = self.open.lock().unwrap(); |
| 40 | *open = true; |
| 41 | self.cv.notify_all(); |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | #[cfg(test)] |
no outgoing calls