std/sys/sync/condvar/
mod.rs

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(any(
16        target_family = "unix",
17        target_os = "teeos",
18    ))] {
19        mod pthread;
20        pub use pthread::Condvar;
21    } else if #[cfg(all(target_os = "windows", target_vendor = "win7"))] {
22        mod windows7;
23        pub use windows7::Condvar;
24    } else if #[cfg(all(target_vendor = "fortanix", target_env = "sgx"))] {
25        mod sgx;
26        pub use sgx::Condvar;
27    } else if #[cfg(target_os = "solid_asp3")] {
28        mod itron;
29        pub use itron::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}