devela::_dep::nc::call

Function futex_wait

pub unsafe fn futex_wait(
    uaddr: *const c_void,
    val: usize,
    mask: usize,
    flags: u32,
    timeout: Option<&timespec_t>,
    clockid: i32,
) -> Result<(), i32> 
Available on crate feature dep_nc only.
Expand description

Wait on a futex.

  • uaddr: Address of the futex to wait on
  • val: Value of uaddr
  • mask: bitmask
  • flags: FUTEX2 flags
  • timeout: Optional absolute timeout
  • clockid: Clock to be used for the timeout, realtime or monotonic

Identical to the traditional FUTEX_WAIT_BITSET op, except it is part of the futex2 familiy of calls.