pub fn sys_futex_wait(
futex: &AtomicU32,
expected_value: u32,
timeout: Option<Duration>,
) -> Result<(), Error>Expand description
Calls the futex syscall with FUTEX_WAIT operation.
This will block if the value of the futex is equal to the expected_value.
Possible non-fatal errors:
EAGAIN: the value offutexis not equal toexpected_valueEINTR: the syscall was interrupted by a signalETIMEDOUT: the specified timeout has elapsed without the futex being woken up