arceos_api::task

Function ax_yield_now

Source
pub fn ax_yield_now()
Expand description

Current task gives up the CPU time voluntarily, and switches to another ready task.

If the feature multitask is not enabled, it does nothing.