1 2 3 4 5 6 7 8 9 10 11
/// Yield the processor. /// /// # Examples /// /// ``` /// let ret = unsafe { nc::sched_yield() }; /// assert!(ret.is_ok()); /// ``` pub unsafe fn sched_yield() -> Result<(), Errno> { syscall0(SYS_SCHED_YIELD).map(drop) }