]> git.proxmox.com Git - rustc.git/blame - library/std/src/sys_common/thread_parker/mod.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / library / std / src / sys_common / thread_parker / mod.rs
CommitLineData
1b1a35ee 1cfg_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}