Function current_task

Source
pub(super) fn current_task() -> Option<NonNull<Task>>
Expand description

Returns a pointer to the current task running on the processor.

It returns None if the function is called in the bootstrap context.