Skip to main content

std/sys/sync/condvar/
mod.rs

1cfg_select! {
2    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 = "motor",
10        target_os = "fuchsia",
11        all(target_family = "wasm", target_feature = "atomics"),
12        target_os = "hermit",
13        all(target_os = "wasi", target_env = "p3"),
14    ) => {
15        mod futex;
16        pub use futex::Condvar;
17    }
18    any(target_family = "unix", target_os = "teeos") => {
19        mod pthread;
20        pub use pthread::Condvar;
21    }
22    all(target_os = "windows", target_vendor = "win7") => {
23        mod windows7;
24        pub use windows7::Condvar;
25    }
26    all(target_vendor = "fortanix", target_env = "sgx") => {
27        mod sgx;
28        pub use sgx::Condvar;
29    }
30    target_os = "solid_asp3" => {
31        mod itron;
32        pub use itron::Condvar;
33    }
34    target_os = "xous" => {
35        mod xous;
36        pub use xous::Condvar;
37    }
38    _ => {
39        mod no_threads;
40        pub use no_threads::Condvar;
41    }
42}