]> git.proxmox.com Git - rustc.git/blob - library/std/src/sys/unix/thread_parker/mod.rs
New upstream version 1.66.0+dfsg1
[rustc.git] / library / std / src / sys / unix / thread_parker / mod.rs
1 //! Thread parking on systems without futex support.
2
3 #![cfg(not(any(
4 target_os = "linux",
5 target_os = "android",
6 all(target_os = "emscripten", target_feature = "atomics"),
7 target_os = "freebsd",
8 target_os = "openbsd",
9 target_os = "dragonfly",
10 target_os = "fuchsia",
11 )))]
12
13 cfg_if::cfg_if! {
14 if #[cfg(all(
15 any(
16 target_os = "macos",
17 target_os = "ios",
18 target_os = "watchos",
19 target_os = "tvos",
20 ),
21 not(miri),
22 ))] {
23 mod darwin;
24 pub use darwin::Parker;
25 } else if #[cfg(target_os = "netbsd")] {
26 mod netbsd;
27 pub use netbsd::Parker;
28 } else {
29 mod pthread;
30 pub use pthread::Parker;
31 }
32 }