about summary refs log tree commit diff
path: root/library/std/src/sys/sync
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-07-17 19:28:24 +0000
committerbors <bors@rust-lang.org>2024-07-17 19:28:24 +0000
commitfcc325f1bc477975e2ce5ba534fe4c77ff8a8536 (patch)
tree9a4b33645eb083c54c5c455150f9126f57b8de90 /library/std/src/sys/sync
parentf00f85091904530ee8f5b29251c53571e0062a76 (diff)
parentfa58d1bef832151a97d1f7b763a530b287bfb787 (diff)
downloadrust-fcc325f1bc477975e2ce5ba534fe4c77ff8a8536.tar.gz
rust-fcc325f1bc477975e2ce5ba534fe4c77ff8a8536.zip
Auto merge of #125942 - timokroeger:windows-once-futex, r=ChrisDenton
Windows: Use futex implementation for `Once`

Keep the queue implementation for win7.
Inspired by PR #121956

<!--
If this PR is related to an unstable feature or an otherwise tracked effort,
please link to the relevant tracking issue here. If you don't know of a related
tracking issue or there are none, feel free to ignore this.

This PR will get automatically assigned to a reviewer. In case you would like
a specific user to review your work, you can assign it to them by using

    r​? <reviewer name>
-->
Diffstat (limited to 'library/std/src/sys/sync')
-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"),