Function rustix::thread::futex::lock_pi2

source ·
pub fn lock_pi2(
    uaddr: &AtomicU32,
    flags: Flags,
    timeout: Option<Timespec>,
) -> Result<()>
Expand description

Equivalent to syscall(SYS_futex, uaddr, FUTEX_LOCK_PI2, 0, timeout, NULL, 0)

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

§References