Skip to main content

std/sys/sync/rwlock/
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 = "fuchsia",
10        all(target_family = "wasm", target_feature = "atomics"),
11        target_os = "hermit",
12        target_os = "motor",
13        all(target_os = "wasi", target_env = "p3"),
14    ) => {
15        mod futex;
16        pub use futex::RwLock;
17    }
18    any(
19        target_family = "unix",
20        all(target_os = "windows", target_vendor = "win7"),
21        all(target_vendor = "fortanix", target_env = "sgx"),
22        target_os = "xous",
23        target_os = "teeos",
24    ) => {
25        mod queue;
26        pub use queue::RwLock;
27    }
28    target_os = "solid_asp3" => {
29        mod solid;
30        pub use solid::RwLock;
31    }
32    _ => {
33        mod no_threads;
34        pub use no_threads::RwLock;
35    }
36}