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

Function fetch_task

os/src/task/manager.rs:44–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42}
43
44pub fn fetch_task() -> Option<Arc<TaskControlBlock>> {
45 TASK_MANAGER.exclusive_access().fetch()
46}
47
48pub fn pid2process(pid: usize) -> Option<Arc<ProcessControlBlock>> {
49 let map = PID2PCB.exclusive_access();

Callers 1

run_tasksFunction · 0.85

Calls 2

fetchMethod · 0.80
exclusive_accessMethod · 0.80

Tested by

no test coverage detected