rustix::thread::futex

Function wait_bitset

source
pub fn wait_bitset(
    uaddr: &AtomicU32,
    flags: Flags,
    val: u32,
    timeout: Option<Timespec>,
    val3: NonZeroU32,
) -> Result<()>
Expand description

Equivalent to syscall(SYS_futex, uaddr, FUTEX_WAIT_BITSET, val, timeout, NULL, val3)

This is a very low-level feature for implementing synchronization primitives. See the references links.

ยงReferences