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

Method current

os/src/task/processor.rs:27–29  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

25 self.current.take()
26 }
27 pub fn current(&self) -> Option<Arc<TaskControlBlock>> {
28 self.current.as_ref().map(Arc::clone)
29 }
30}
31
32lazy_static! {

Callers 1

current_taskFunction · 0.80

Calls 1

mapMethod · 0.45

Tested by

no test coverage detected