StaticsΒ§
- BOOTSTRAP_
CONTEXT π - An unsafe cell to store the context of the bootstrap code.
- CURRENT_
TASK_ πPTR - The
Arc<Task>
(casted byArc::into_raw
) that is the current task. - PREVIOUS_
TASK_ πPTR - The previous task on the processor before switching to the current task. It is used for delayed resource release since it would be the current taskβs job to recycle the previous resources.
FunctionsΒ§
- after_
switching_ π βto - Does cleanups after switching to a task.
- before_
switching_ πto - current_
task π - Returns a pointer to the current task running on the processor.
- switch_
to_ πtask - Calls this function to switch to other task