We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0fd0ca commit 7321f53Copy full SHA for 7321f53
library/std/src/sys/pal/wasm/atomics/futex.rs
@@ -14,11 +14,8 @@ use crate::time::Duration;
14
pub fn futex_wait(futex: &AtomicU32, expected: u32, timeout: Option<Duration>) -> bool {
15
let timeout = timeout.and_then(|t| t.as_nanos().try_into().ok()).unwrap_or(-1);
16
unsafe {
17
- wasm::memory_atomic_wait32(
18
- futex as *const AtomicU32 as *mut i32,
19
- expected as i32,
20
- timeout,
21
- ) < 2
+ wasm::memory_atomic_wait32(futex as *const AtomicU32 as *mut i32, expected as i32, timeout)
+ < 2
22
}
23
24
0 commit comments