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