1cfg_if::cfg_if! {
2 if #[cfg(any(
3 all(target_os = "windows", not(target_vendor="win7")),
4 target_os = "linux",
5 target_os = "android",
6 target_os = "freebsd",
7 target_os = "openbsd",
8 target_os = "dragonfly",
9 target_os = "fuchsia",
10 all(target_family = "wasm", target_feature = "atomics"),
11 target_os = "hermit",
12 ))] {
13 mod futex;
14 pub use futex::Condvar;
15 } else if #[cfg(target_family = "unix")] {
16 mod pthread;
17 pub use pthread::Condvar;
18 } else if #[cfg(all(target_os = "windows", target_vendor = "win7"))] {
19 mod windows7;
20 pub use windows7::Condvar;
21 } else if #[cfg(all(target_vendor = "fortanix", target_env = "sgx"))] {
22 mod sgx;
23 pub use sgx::Condvar;
24 } else if #[cfg(target_os = "solid_asp3")] {
25 mod itron;
26 pub use itron::Condvar;
27 } else if #[cfg(target_os = "teeos")] {
28 mod teeos;
29 pub use teeos::Condvar;
30 } else if #[cfg(target_os = "xous")] {
31 mod xous;
32 pub use xous::Condvar;
33 } else {
34 mod no_threads;
35 pub use no_threads::Condvar;
36 }
37}
38