1 2 3 4 5
/// Suspend current thread for some time. pub unsafe fn thr_suspend(timeout: ×pec_t) -> Result<(), Errno> { let timeout_ptr = core::ptr::from_ref(timeout) as usize; unsafe { syscall1(SYS_THR_SUSPEND, timeout_ptr).map(drop) } }