devela::_dep::rustix::thread

Function futex

pub unsafe fn futex(
    uaddr: *mut u32,
    op: FutexOperation,
    flags: Flags,
    val: u32,
    utime: *const __kernel_timespec,
    uaddr2: *mut u32,
    val3: u32,
) -> Result<usize, Errno> 
Available on crate feature dep_rustix only.
Expand description

DEPRECATED: There are now individual functions available to perform futex operations with improved type safety. See the futex module.

futex(uaddr, op, val, utime, uaddr2, val3)

§References

§Safety

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