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

Method new

toys/inter/src/main.rs:13–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11
12impl Foo {
13 fn new() -> Self {
14 Self {
15 mu1: sync::Arc::new(sync::Mutex::new(1)),
16 rw1: sync::RwLock::new(1),
17 mu2: parking_lot::Mutex::new(1),
18 rw2: parking_lot::RwLock::new(1),
19 mu3: spin::Mutex::new(1),
20 rw3: spin::RwLock::new(1),
21 }
22 }
23
24 fn std_mutex_1(&self) {
25 let guard1 = self.mu1.lock().unwrap();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected