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

Function add_task

os/src/task/manager.rs:33–35  ·  view source on GitHub ↗
(task: Arc<TaskControlBlock>)

Source from the content-addressed store, hash-verified

31}
32
33pub fn add_task(task: Arc<TaskControlBlock>) {
34 TASK_MANAGER.exclusive_access().add(task);
35}
36
37pub fn wakeup_task(task: Arc<TaskControlBlock>) {
38 let mut task_inner = task.inner_exclusive_access();

Callers 5

newMethod · 0.85
forkMethod · 0.85
wakeup_taskFunction · 0.85
sys_thread_createFunction · 0.85

Calls 2

addMethod · 0.80
exclusive_accessMethod · 0.80

Tested by

no test coverage detected