[go: up one dir, main page]

wait

Function wait 

Source
pub fn wait(
    uaddr: &AtomicU32,
    flags: Flags,
    val: u32,
    timeout: Option<&Timespec>,
) -> Result<()>
Available on crate feature thread only.
Expand description

syscall(SYS_futex, uaddr, FUTEX_WAIT, val, timeout, NULL, 0)

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

ยงReferences