Atomically checks if the value at ptr equals expected, and if so, blocks until either:
ptr argument) futexWake call occurs, orTypically, futexWake should be called immediately after updating the value at ptr.*, to
unblock tasks using futexWait to wait for the value to change from what it previously was.
The caller is responsible for identifying spurious wakeups if necessary, typically by checking
the value at ptr.*.
Asserts that T is 4 bytes in length and has a well-defined layout with no padding bits.
pub fn futexWait(io: Io, comptime T: type, ptr: *align(@alignOf(u32)) const T, expected: T) Cancelable!void
pub fn futexWait(io: Io, comptime T: type, ptr: *align(@alignOf(u32)) const T, expected: T) Cancelable!void {
return futexWaitTimeout(io, T, ptr, expected, .none);
}