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

Method std_mutex_1

toys/conflict-inter/src/main.rs:17–22  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

15 }
16
17 fn std_mutex_1(&self) {
18 match *self.mu1.lock().unwrap() {
19 1 => {},
20 _ => { self.std_rw_2(); },
21 };
22 }
23
24 fn std_rw_2(&self) {
25 *self.rw1.write().unwrap() += 1;

Callers 1

mainFunction · 0.45

Calls 1

std_rw_2Method · 0.80

Tested by

no test coverage detected