Skip to content

Commit

Permalink
Auto merge of rust-lang#125942 - timokroeger:windows-once-futex, r=jo…
Browse files Browse the repository at this point in the history
…boet

Windows: Use futex implementation for `Once`

Keep the queue implementation for win7.
Inspired by PR rust-lang#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>
-->
  • Loading branch information
bors committed Jul 13, 2024
2 parents fcaa6fd + fa58d1b commit 8b2338e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/std/src/sys/sync/once/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down

0 comments on commit 8b2338e

Please sign in to comment.