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

Method add

os/src/task/manager.rs:18–20  ·  view source on GitHub ↗
(&mut self, task: Arc<TaskControlBlock>)

Source from the content-addressed store, hash-verified

16 }
17 }
18 pub fn add(&mut self, task: Arc<TaskControlBlock>) {
19 self.ready_queue.push_back(task);
20 }
21 pub fn fetch(&mut self) -> Option<Arc<TaskControlBlock>> {
22 self.ready_queue.pop_front()
23 }

Callers 3

add_taskFunction · 0.80
sys_execFunction · 0.80
sys_pipeFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected