1//! Event operations.
2
3#[cfg(any(
4 linux_kernel,
5 target_os = "freebsd",
6 target_os = "illumos",
7 target_os = "espidf"
8))]
9mod eventfd;
10#[cfg(all(feature = "alloc", bsd))]
11pub mod kqueue;
12#[cfg(not(any(windows, target_os = "redox", target_os = "wasi")))]
13mod pause;
14mod poll;
15#[cfg(solarish)]
16pub mod port;
17
18#[cfg(any(linux_kernel, target_os = "redox"))]
19pub use crate::backend::event::epoll;
20#[cfg(any(
21 linux_kernel,
22 target_os = "freebsd",
23 target_os = "illumos",
24 target_os = "espidf"
25))]
26pub use eventfd::{eventfd, EventfdFlags};
27#[cfg(not(any(windows, target_os = "redox", target_os = "wasi")))]
28pub use pause::*;
29pub use poll::{poll, PollFd, PollFlags};
30