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

Function lock_pi

pub fn lock_pi(
    uaddr: &AtomicU32,
    flags: Flags,
    timeout: Option<__kernel_timespec>,
) -> Result<(), Errno> 
Available on crate feature dep_rustix only.
Expand description

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

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

§References