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

Method new

toys/condvar-struct/src/main.rs:13–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11
12 impl CondPair {
13 fn new() -> Self {
14 Self {
15 lock: Mutex::new(false),
16 cvar: Condvar::new(),
17 }
18 }
19 fn wait(&self) {
20 let mut started = self.lock.lock().unwrap();
21 println!("start waiting!");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected