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

Method get_task

os/src/task/process.rs:64–66  ·  view source on GitHub ↗
(&self, tid: usize)

Source from the content-addressed store, hash-verified

62 }
63
64 pub fn get_task(&self, tid: usize) -> Arc<TaskControlBlock> {
65 self.tasks[tid].as_ref().unwrap().clone()
66 }
67}
68
69impl ProcessControlBlock {

Callers 2

execMethod · 0.80
forkMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected