Function arceos_posix_api::sys_sched_yield

source ·
pub fn sys_sched_yield() -> c_int
Expand description

Relinquish the CPU, and switches to another task.

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