Skip to content

Commit 113f7e9

Browse files
committed
std: use the futex-based Condvar and RwLock on Apple platforms
1 parent 82fa41a commit 113f7e9

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

library/std/src/sys/locks/condvar/mod.rs

+4
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ cfg_if::cfg_if! {
99
target_os = "fuchsia",
1010
all(target_family = "wasm", target_feature = "atomics"),
1111
target_os = "hermit",
12+
target_os = "macos",
13+
target_os = "ios",
14+
target_os = "tvos",
15+
target_os = "watchos",
1216
))] {
1317
mod futex;
1418
pub use futex::Condvar;

library/std/src/sys/locks/rwlock/mod.rs

+4
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ cfg_if::cfg_if! {
99
target_os = "fuchsia",
1010
all(target_family = "wasm", target_feature = "atomics"),
1111
target_os = "hermit",
12+
target_os = "macos",
13+
target_os = "ios",
14+
target_os = "tvos",
15+
target_os = "watchos",
1216
))] {
1317
mod futex;
1418
pub use futex::RwLock;

0 commit comments

Comments
 (0)