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

Function f

user/src/bin/adder_atomic.rs:40–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38}
39
40unsafe fn f() -> ! {
41 let mut t = 2usize;
42 for _ in 0..PER_THREAD {
43 lock();
44 critical_section(&mut t);
45 unlock();
46 }
47 exit(t as i32)
48}
49
50#[no_mangle]
51pub fn main(argc: usize, argv: &[&str]) -> i32 {

Callers

nothing calls this directly

Calls 4

exitFunction · 0.85
lockFunction · 0.70
critical_sectionFunction · 0.70
unlockFunction · 0.70

Tested by

no test coverage detected