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 ) => {
13 mod futex;
14 pub use futex::Mutex;
15 }
16 target_os = "fuchsia" => {
17 mod fuchsia;
18 pub use fuchsia::Mutex;
19 }
20 any(
21 target_family = "unix",
22 target_os = "teeos",
23 ) => {
24 mod pthread;
25 pub use pthread::Mutex;
26 }
27 all(target_os = "windows", target_vendor = "win7") => {
28 mod windows7;
29 pub use windows7::{Mutex, raw};
30 }
31 all(target_vendor = "fortanix", target_env = "sgx") => {
32 mod sgx;
33 pub use sgx::Mutex;
34 }
35 target_os = "solid_asp3" => {
36 mod itron;
37 pub use itron::Mutex;
38 }
39 target_os = "xous" => {
40 mod xous;
41 pub use xous::Mutex;
42 }
43 _ => {
44 mod no_threads;
45 pub use no_threads::Mutex;
46 }
47}