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

Function take_current_task

os/src/task/processor.rs:59–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57}
58
59pub fn take_current_task() -> Option<Arc<TaskControlBlock>> {
60 PROCESSOR.exclusive_access().take_current()
61}
62
63pub fn current_task() -> Option<Arc<TaskControlBlock>> {
64 PROCESSOR.exclusive_access().current()

Callers 3

block_current_taskFunction · 0.85

Calls 2

take_currentMethod · 0.80
exclusive_accessMethod · 0.80

Tested by

no test coverage detected