MCPcopy Create free account
hub / github.com/CodeSentryAI/lockbud / wait

Method wait

toys/condvar-struct/src/main.rs:19–26  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

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!");

Callers 13

std_correctFunction · 0.80
std_deadlock_waitFunction · 0.80
parking_lot_correctFunction · 0.80
std_correctFunction · 0.80
std_deadlock_waitFunction · 0.80
parking_lot_correctFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected