Skip to content

Commit 395ad9f

Browse files
committed
Windows: Use futex implementation for Once
Keep the queue implementation for win7. Inspired by PR rust-lang#121956
1 parent 6ef46b3 commit 395ad9f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

std/src/sys/sync/once/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
cfg_if::cfg_if! {
1111
if #[cfg(any(
12+
all(target_os = "windows", not(target_vendor="win7")),
1213
target_os = "linux",
1314
target_os = "android",
1415
all(target_arch = "wasm32", target_feature = "atomics"),

0 commit comments

Comments
 (0)