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

Function second

user/src/bin/sync_sem.rs:23–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21}
22
23unsafe fn second() -> ! {
24 println!("Second want to continue,but need to wait first");
25 semaphore_down(SEM_SYNC);
26 println!("Second can work now");
27 exit(0)
28}
29
30#[no_mangle]
31pub fn main() -> i32 {

Callers

nothing calls this directly

Calls 2

semaphore_downFunction · 0.85
exitFunction · 0.85

Tested by

no test coverage detected