std/sys/sync/thread_parking/
mod.rs1cfg_select! {
2    any(
3        all(target_os = "windows", not(target_vendor = "win7")),
4        target_os = "linux",
5        target_os = "android",
6        all(target_arch = "wasm32", target_feature = "atomics"),
7        target_os = "freebsd",
8        target_os = "openbsd",
9        target_os = "dragonfly",
10        target_os = "fuchsia",
11        target_os = "motor",
12        target_os = "hermit",
13    ) => {
14        mod futex;
15        pub use futex::Parker;
16    }
17    any(
18        target_os = "netbsd",
19        all(target_vendor = "fortanix", target_env = "sgx"),
20        target_os = "solid_asp3",
21    ) => {
22        mod id;
23        pub use id::Parker;
24    }
25    target_vendor = "win7" => {
26        mod windows7;
27        pub use windows7::Parker;
28    }
29    all(target_vendor = "apple", not(miri)) => {
30        mod darwin;
32        pub use darwin::Parker;
33    }
34    target_os = "xous" => {
35        mod xous;
36        pub use xous::Parker;
37    }
38    target_family = "unix" => {
39        mod pthread;
40        pub use pthread::Parker;
41    }
42    _ => {
43        mod unsupported;
44        pub use unsupported::Parker;
45    }
46}