Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
32
lazy_static! {
Callers
1
current_task
Function · 0.80
Calls
1
map
Method · 0.45
Tested by
no test coverage detected