current_task
os
0.1.0
current_
task
Sections
返回值:当前任务的SharedTask
In os::
kernel::
task
os
::
kernel
::
task
Function
current_
task
Copy item path
Source
pub fn current_task() -> Arc<
SpinLock
<
Task
>>
Expand description
获取当前task
§
返回值:当前任务的SharedTask