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

Function wakeup_task

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

Source from the content-addressed store, hash-verified

35}
36
37pub fn wakeup_task(task: Arc<TaskControlBlock>) {
38 let mut task_inner = task.inner_exclusive_access();
39 task_inner.task_status = TaskStatus::Ready;
40 drop(task_inner);
41 add_task(task);
42}
43
44pub fn fetch_task() -> Option<Arc<TaskControlBlock>> {
45 TASK_MANAGER.exclusive_access().fetch()

Callers 4

check_timerFunction · 0.85
unlockMethod · 0.85
signalMethod · 0.85
upMethod · 0.85

Calls 3

dropFunction · 0.85
add_taskFunction · 0.85

Tested by

no test coverage detected