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    ) => {
13        mod futex;
14        pub use futex::RwLock;
15    }
16    any(
17        target_family = "unix",
18        all(target_os = "windows", target_vendor = "win7"),
19        all(target_vendor = "fortanix", target_env = "sgx"),
20        target_os = "xous",
21    ) => {
22        mod queue;
23        pub use queue::RwLock;
24    }
25    target_os = "solid_asp3" => {
26        mod solid;
27        pub use solid::RwLock;
28    }
29    target_os = "teeos" => {
30        mod teeos;
31        pub use teeos::RwLock;
32    }
33    _ => {
34        mod no_threads;
35        pub use no_threads::RwLock;
36    }
37}