1cfg_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(any(
15 target_os = "netbsd",
16 all(target_vendor = "fortanix", target_env = "sgx"),
17 target_os = "solid_asp3",
18 ))] {
19 mod id;
20 pub use id::Parker;
21 } else {
22 pub use crate::sys::thread_parking::Parker;
23 }
24}
25