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

Method take_current

os/src/task/processor.rs:24–26  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

22 &mut self.idle_task_cx as *mut _
23 }
24 pub fn take_current(&mut self) -> Option<Arc<TaskControlBlock>> {
25 self.current.take()
26 }
27 pub fn current(&self) -> Option<Arc<TaskControlBlock>> {
28 self.current.as_ref().map(Arc::clone)
29 }

Callers 1

take_current_taskFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected