2020-09-19 14:54:21 +02:00
|
|
|
cfg_if::cfg_if! {
|
2020-10-06 20:01:42 +02:00
|
|
|
if #[cfg(any(
|
|
|
|
|
target_os = "linux",
|
|
|
|
|
target_os = "android",
|
|
|
|
|
all(target_arch = "wasm32", target_feature = "atomics"),
|
2022-04-28 12:22:14 +02:00
|
|
|
target_os = "freebsd",
|
2022-04-28 10:32:11 +02:00
|
|
|
target_os = "openbsd",
|
2022-04-28 11:28:40 +02:00
|
|
|
target_os = "dragonfly",
|
2022-05-06 12:05:40 +02:00
|
|
|
target_os = "fuchsia",
|
2020-10-06 20:01:42 +02:00
|
|
|
))] {
|
2020-09-19 18:03:10 +02:00
|
|
|
mod futex;
|
|
|
|
|
pub use futex::Parker;
|
2022-05-18 12:18:51 +02:00
|
|
|
} else if #[cfg(target_os = "solid_asp3")] {
|
|
|
|
|
mod wait_flag;
|
|
|
|
|
pub use wait_flag::Parker;
|
|
|
|
|
} else if #[cfg(any(windows, target_family = "unix"))] {
|
2022-04-25 15:19:50 +02:00
|
|
|
pub use crate::sys::thread_parker::Parker;
|
2020-09-19 14:54:21 +02:00
|
|
|
} else {
|
|
|
|
|
mod generic;
|
|
|
|
|
pub use generic::Parker;
|
2020-09-19 12:42:14 +02:00
|
|
|
}
|
|
|
|
|
}
|