[−][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:
- 0 Yielding without core migration
- -1 Yielding with core migration
- -2 Yielding to any other thread