[][src]Function sunrise_kernel::syscalls::sleep_thread

pub fn sleep_thread(nanos: usize) -> Result<(), UserspaceError>

Sleep for a specified amount of time, or yield thread.

Setting nanoseconds to 0, -1, or -2 indicates a yielding type: