MCPcopy Create free account
hub / github.com/chyyuu/os_kernel_lab / f

Function f

user/src/bin/adder_mutex_blocking.rs:25–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23 a.write_volatile(cur + 1);
24}
25unsafe fn f() -> ! {
26 let mut t = 2usize;
27 for _ in 0..PER_THREAD {
28 mutex_lock(0);
29 critical_section(&mut t);
30 mutex_unlock(0);
31 }
32 exit(t as i32)
33}
34
35#[no_mangle]
36pub fn main(argc: usize, argv: &[&str]) -> i32 {

Callers

nothing calls this directly

Calls 4

mutex_lockFunction · 0.85
mutex_unlockFunction · 0.85
exitFunction · 0.85
critical_sectionFunction · 0.70

Tested by

no test coverage detected