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 19e3ea8 commit a6b2fd2Copy full SHA for a6b2fd2
src/windows.rs
@@ -33,7 +33,6 @@ impl ECMAScriptAtomicWaitImpl for Racy<'_, u32> {
33
)
34
};
35
if result == 1 {
36
- eprintln!("Result: {result}");
37
Ok(())
38
} else {
39
let errno = std::io::Error::last_os_error().raw_os_error().unwrap_or(0);
tests/test.rs
@@ -18,7 +18,11 @@ fn wait_unexpected() {
18
let t = Instant::now();
19
let a = RacyBox::new(0u32).unwrap();
20
let a = a.as_slice().get(0).unwrap();
21
+ // Note: Windows doesn't report early-exits.
22
+ #[cfg(not(windows))]
23
assert_eq!(a.wait(1), Err(FutexError::NotEqual));
24
+ #[cfg(windows)]
25
+ assert_eq!(a.wait(1), Ok(()));
26
assert!(t.elapsed().as_millis() < 100);
27
}
28
0 commit comments