Function take_current_process

Source
unsafe fn take_current_process() -> SchedulerProcess
Expand description

ยงSafety

Must ensure that this is called and handled inside pop_cli and push_cli block, as an interrupt in the middle causes the current_process to be unavailable later on