]>
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; | |
fc512014 XL |
13 | } else if #[cfg(windows)] { |
14 | pub use crate::sys::thread_parker::Parker; | |
04454e1e FG |
15 | } else if #[cfg(target_family = "unix")] { |
16 | pub use crate::sys::thread_parker::Parker; | |
1b1a35ee XL |
17 | } else { |
18 | mod generic; | |
19 | pub use generic::Parker; | |
20 | } | |
21 | } |