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

Function f

user/src/bin/adder_mutex_spin.rs:26–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24}
25
26unsafe fn f() -> ! {
27 let mut t = 2usize;
28 for _ in 0..PER_THREAD {
29 mutex_lock(0);
30 critical_section(&mut t);
31 mutex_unlock(0);
32 }
33 exit(t as i32)
34}
35
36#[no_mangle]
37pub 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