devela::_dep::rustix::thread::futex

Function wait_bitset

pub fn wait_bitset(
    uaddr: &AtomicU32,
    flags: Flags,
    val: u32,
    timeout: Option<__kernel_timespec>,
    val3: NonZero<u32>,
) -> Result<(), Errno> 
Available on crate feature dep_rustix only.
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