Skip to main content

SYS_CLOCK_NANOSLEEP

Constant SYS_CLOCK_NANOSLEEP 

Source
pub const SYS_CLOCK_NANOSLEEP: usize = 502; // 502usize
Expand description

Suspend execution on a specific clock.

  • clock_id: clock to use for the sleep
  • flags: TIMER_ABSTIME (1) for absolute time, 0 for relative
  • req_ptr: pointer to a Timespec struct
  • rem_ptr: pointer to receive the remaining time (0 = ignore)

Returns 0 on success.