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

Function schedule

os/src/task/processor.rs:97–103  ·  view source on GitHub ↗
(switched_task_cx_ptr: *mut TaskContext)

Source from the content-addressed store, hash-verified

95}
96
97pub fn schedule(switched_task_cx_ptr: *mut TaskContext) {
98 let idle_task_cx_ptr =
99 PROCESSOR.exclusive_session(|processor| processor.get_idle_task_cx_ptr());
100 unsafe {
101 __switch(switched_task_cx_ptr, idle_task_cx_ptr);
102 }
103}

Callers 7

readMethod · 0.85
read_blockMethod · 0.85
write_blockMethod · 0.85
read_eventMethod · 0.85

Calls 2

exclusive_sessionMethod · 0.80
get_idle_task_cx_ptrMethod · 0.80

Tested by

no test coverage detected