about summary refs log tree commit diff
path: root/library/std/src/sys/locks/condvar/mod.rs
blob: 425b88c1bf08b0b80f2bf5397b1cc7d96523ceef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
cfg_if::cfg_if! {
    if #[cfg(any(
        target_os = "linux",
        target_os = "android",
        target_os = "freebsd",
        target_os = "openbsd",
        target_os = "dragonfly",
        target_os = "fuchsia",
        all(target_family = "wasm", target_feature = "atomics"),
        target_os = "hermit",
    ))] {
        mod futex;
        pub use futex::Condvar;
    } else if #[cfg(target_family = "unix")] {
        mod pthread;
        pub use pthread::Condvar;
    } else if #[cfg(target_os = "windows")] {
        mod windows;
        pub use windows::Condvar;
    } else if #[cfg(all(target_vendor = "fortanix", target_env = "sgx"))] {
        mod sgx;
        pub use sgx::Condvar;
    } else if #[cfg(target_os = "solid_asp3")] {
        mod itron;
        pub use itron::Condvar;
    } else if #[cfg(target_os = "teeos")] {
        mod teeos;
        pub use teeos::Condvar;
    } else if #[cfg(target_os = "xous")] {
        mod xous;
        pub use xous::Condvar;
    }
}