(&self)
| 17 | } |
| 18 | } |
| 19 | fn wait(&self) { |
| 20 | let mut started = self.lock.lock().unwrap(); |
| 21 | println!("start waiting!"); |
| 22 | while !*started { |
| 23 | started = self.cvar.wait(started).unwrap(); |
| 24 | } |
| 25 | println!("end waiting"); |
| 26 | } |
| 27 | fn notify(&self) { |
| 28 | let mut started = self.lock.lock().unwrap(); |
| 29 | println!("start notifying!"); |
no outgoing calls
no test coverage detected