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

Method new

os/src/task/manager.rs:13–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11/// A simple FIFO scheduler.
12impl TaskManager {
13 pub fn new() -> Self {
14 Self {
15 ready_queue: VecDeque::new(),
16 }
17 }
18 pub fn add(&mut self, task: Arc<TaskControlBlock>) {
19 self.ready_queue.push_back(task);
20 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected