arceos_posix_api

Function 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.