Function axstd::thread::yield_now

source ·
pub fn yield_now()
Expand description

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

For single-threaded configuration (multitask feature is disabled), we just relax the CPU and wait for incoming interrupts.