Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
69
impl ProcessControlBlock {
Callers
2
exec
Method · 0.80
fork
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected