diff options
| author | Timo Kröger <timokroeger93@gmail.com> | 2024-06-03 22:56:25 +0200 |
|---|---|---|
| committer | Timo Kröger <timokroeger93@gmail.com> | 2024-06-04 07:13:06 +0200 |
| commit | fa58d1bef832151a97d1f7b763a530b287bfb787 (patch) | |
| tree | 9c47c07618af0298de2024938a54bfd0718ac824 | |
| parent | eb5e2449c5a5215927834d67914ce41cccd3f3c9 (diff) | |
| download | rust-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.rs | 1 |
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"), |
