MCPcopy Create free account
hub / github.com/Ruddle/Fomos / run

Method run

bootloader/kernel/src/task/executor.rs:42–51  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

40
41impl SimpleExecutor {
42 pub fn run(&mut self) {
43 while let Some(mut task) = self.task_queue.pop_front() {
44 let waker = dummy_waker();
45 let mut context = Context::from_waker(&waker);
46 match task.poll(&mut context) {
47 Poll::Ready(()) => {} // task done
48 Poll::Pending => self.task_queue.push_back(task),
49 }
50 }
51 }
52}
53
54#[derive(Debug, Clone)]

Callers 2

kernel_mainFunction · 0.80
driveFunction · 0.80

Calls 5

dummy_wakerFunction · 0.85
spawnMethod · 0.80
run_ready_tasksMethod · 0.80
pollMethod · 0.45
wakeMethod · 0.45

Tested by

no test coverage detected