]> git.lizzy.rs Git - rust.git/blob - library/std/src/sys_common/thread_parker/mod.rs
Auto merge of #104361 - vladimir-ea:watchos_fix_linking, r=oli-obk
[rust.git] / library / std / src / sys_common / thread_parker / mod.rs
1 cfg_if::cfg_if! {
2     if #[cfg(any(
3         target_os = "linux",
4         target_os = "android",
5         all(target_arch = "wasm32", target_feature = "atomics"),
6         target_os = "freebsd",
7         target_os = "openbsd",
8         target_os = "dragonfly",
9         target_os = "fuchsia",
10         target_os = "hermit",
11     ))] {
12         mod futex;
13         pub use futex::Parker;
14     } else if #[cfg(target_os = "solid_asp3")] {
15         mod wait_flag;
16         pub use wait_flag::Parker;
17     } else if #[cfg(any(windows, target_family = "unix"))] {
18         pub use crate::sys::thread_parker::Parker;
19     } else {
20         mod generic;
21         pub use generic::Parker;
22     }
23 }