Module processor

Source

StaticsΒ§

BOOTSTRAP_CONTEXT πŸ”’
An unsafe cell to store the context of the bootstrap code.
CURRENT_TASK_PTR πŸ”’
The Arc<Task> (casted by Arc::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