]>
Commit | Line | Data |
---|---|---|
1b1a35ee | 1 | cfg_if::cfg_if! { |
29967ef6 XL |
2 | if #[cfg(any( |
3 | target_os = "linux", | |
4 | target_os = "android", | |
5 | all(target_arch = "wasm32", target_feature = "atomics"), | |
04454e1e FG |
6 | target_os = "freebsd", |
7 | target_os = "openbsd", | |
8 | target_os = "dragonfly", | |
923072b8 | 9 | target_os = "fuchsia", |
29967ef6 | 10 | ))] { |
1b1a35ee XL |
11 | mod futex; |
12 | pub use futex::Parker; | |
064997fb FG |
13 | } else if #[cfg(target_os = "solid_asp3")] { |
14 | mod wait_flag; | |
15 | pub use wait_flag::Parker; | |
16 | } else if #[cfg(any(windows, target_family = "unix"))] { | |
04454e1e | 17 | pub use crate::sys::thread_parker::Parker; |
1b1a35ee XL |
18 | } else { |
19 | mod generic; | |
20 | pub use generic::Parker; | |
21 | } | |
22 | } |