Function nc::sched_yield

source ·
pub unsafe fn sched_yield() -> Result<(), Errno>
Expand description

Yield the processor.

§Example

let ret = unsafe { nc::sched_yield() };
assert!(ret.is_ok());