| 1 | cfg_select! { |
| 2 | any( |
| 3 | all(target_os = "windows" , not(target_vendor = "win7" )), |
| 4 | target_os = "linux" , |
| 5 | target_os = "android" , |
| 6 | all(target_arch = "wasm32" , target_feature = "atomics" ), |
| 7 | target_os = "freebsd" , |
| 8 | target_os = "openbsd" , |
| 9 | target_os = "dragonfly" , |
| 10 | target_os = "fuchsia" , |
| 11 | target_os = "motor" , |
| 12 | target_os = "hermit" , |
| 13 | ) => { |
| 14 | mod futex; |
| 15 | pub use futex::Parker; |
| 16 | } |
| 17 | any( |
| 18 | target_os = "netbsd" , |
| 19 | all(target_vendor = "fortanix" , target_env = "sgx" ), |
| 20 | target_os = "solid_asp3" , |
| 21 | ) => { |
| 22 | mod id; |
| 23 | pub use id::Parker; |
| 24 | } |
| 25 | target_vendor = "win7" => { |
| 26 | mod windows7; |
| 27 | pub use windows7::Parker; |
| 28 | } |
| 29 | all(target_vendor = "apple" , not(miri)) => { |
| 30 | // Doesn't work in Miri, see <https://github.com/rust-lang/miri/issues/2589>. |
| 31 | mod darwin; |
| 32 | pub use darwin::Parker; |
| 33 | } |
| 34 | target_os = "xous" => { |
| 35 | mod xous; |
| 36 | pub use xous::Parker; |
| 37 | } |
| 38 | any( |
| 39 | target_family = "unix" , |
| 40 | target_os = "teeos" , |
| 41 | ) => { |
| 42 | mod pthread; |
| 43 | pub use pthread::Parker; |
| 44 | } |
| 45 | _ => { |
| 46 | mod unsupported; |
| 47 | pub use unsupported::Parker; |
| 48 | } |
| 49 | } |
| 50 | |