]> git.lizzy.rs Git - rust.git/blob - library/std/src/sys_common/thread_parker/mod.rs
:arrow_up: rust-analyzer
[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     ))] {
11         mod futex;
12         pub use futex::Parker;
13     } else if #[cfg(target_os = "solid_asp3")] {
14         mod wait_flag;
15         pub use wait_flag::Parker;
16     } else if #[cfg(any(windows, target_family = "unix"))] {
17         pub use crate::sys::thread_parker::Parker;
18     } else {
19         mod generic;
20         pub use generic::Parker;
21     }
22 }