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

Function remove_from_pid2process

os/src/task/manager.rs:57–62  ·  view source on GitHub ↗
(pid: usize)

Source from the content-addressed store, hash-verified

55}
56
57pub fn remove_from_pid2process(pid: usize) {
58 let mut map = PID2PCB.exclusive_access();
59 if map.remove(&pid).is_none() {
60 panic!("cannot find pid {} in pid2task!", pid);
61 }
62}

Callers 1

Calls 1

exclusive_accessMethod · 0.80

Tested by

no test coverage detected