#![no_std]
#![warn(missing_docs)]
#![cfg_attr(feature = "cargo-clippy", allow(clippy::style))]
#[cold]
#[inline(never)]
fn unlikely<T>(result: T) -> T {
result
}
#[cfg(not(any(windows, unix, target_os = "fuchsia")))]
compile_error!("Semaphore is not available for your target");
#[cfg(any(all(unix, not(any(target_os = "macos", target_os = "ios"))), target_os = "fuchsia"))]
mod posix;
#[cfg(any(all(unix, not(any(target_os = "macos", target_os = "ios"))), target_os = "fuchsia"))]
pub use posix::Sem;
#[cfg(windows)]
mod win32;
#[cfg(windows)]
pub use win32::Sem;
#[cfg(any(target_os = "macos", target_os = "ios"))]
mod mac;
#[cfg(any(target_os = "macos", target_os = "ios"))]
pub use mac::Sem;