rustix::thread

Function futex

source
pub unsafe fn futex(
    uaddr: *mut u32,
    op: FutexOperation,
    flags: FutexFlags,
    val: u32,
    utime: *const Timespec,
    uaddr2: *mut u32,
    val3: u32,
) -> Result<usize>
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.