Function futex2_wait [src]

Wait on a futex. Identical to the traditional FUTEX.FUTEX_WAIT_BITSET op, except it is part of the futex2 familiy of calls.

Prototype

pub fn futex2_wait( uaddr: *const anyopaque, val: usize, mask: usize, flags: u32, timeout: ?*const timespec, clockid: clockid_t, ) usize

Parameters

uaddr: *const anyopaqueAddress of the futex to wait on. val: usizeValue of uaddr. mask: usizeBitmask. flags: u32FUTEX2 flags. timeout: ?*const timespecOptional absolute timeout. clockid: clockid_tClock to be used for the timeout, realtime or monotonic.

Source

pub fn futex2_wait( /// Address of the futex to wait on. uaddr: *const anyopaque, /// Value of `uaddr`. val: usize, /// Bitmask. mask: usize, /// `FUTEX2` flags. flags: u32, /// Optional absolute timeout. timeout: ?*const timespec, /// Clock to be used for the timeout, realtime or monotonic. clockid: clockid_t, ) usize { return syscall6( .futex_wait, @intFromPtr(uaddr), val, mask, flags, @intFromPtr(timeout), @bitCast(@as(isize, @intFromEnum(clockid))), ); }