about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTimo Kröger <timokroeger93@gmail.com>2024-06-03 22:56:25 +0200
committerTimo Kröger <timokroeger93@gmail.com>2024-06-04 07:13:06 +0200
commitfa58d1bef832151a97d1f7b763a530b287bfb787 (patch)
tree9c47c07618af0298de2024938a54bfd0718ac824
parenteb5e2449c5a5215927834d67914ce41cccd3f3c9 (diff)
downloadrust-fa58d1bef832151a97d1f7b763a530b287bfb787.tar.gz
rust-fa58d1bef832151a97d1f7b763a530b287bfb787.zip
Windows: Use futex implementation for `Once`
Keep the queue implementation for win7.
Inspired by PR #121956
-rw-r--r--library/std/src/sys/sync/once/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/src/sys/sync/once/mod.rs b/library/std/src/sys/sync/once/mod.rs
index 61b29713fa1..0e38937b121 100644
--- a/library/std/src/sys/sync/once/mod.rs
+++ b/library/std/src/sys/sync/once/mod.rs
@@ -9,6 +9,7 @@
 
 cfg_if::cfg_if! {
     if #[cfg(any(
+        all(target_os = "windows", not(target_vendor="win7")),
         target_os = "linux",
         target_os = "android",
         all(target_arch = "wasm32", target_feature = "atomics"),