os-sync 0.3.3

Simple synchronization primitives based on OS semaphore
Documentation
//! Simple synchronization primitives based on OS semaphore.

#![no_std]
#![warn(missing_docs)]
#![cfg_attr(feature = "cargo-clippy", allow(clippy::style))]

#[cfg(not(debug_assertions))]
macro_rules! unreach {
    () => ({
        unsafe {
            core::hint::unreachable_unchecked();
        }
    })
}

#[cfg(debug_assertions)]
macro_rules! unreach {
    () => ({
        unreachable!()
    })
}

mod sem;
pub use sem::{Sem, Semaphore, SemaphoreGuard};

mod once;
pub use once::Once;

pub mod mutex;
pub use mutex::Mutex;
///Alias to [SemMutex](mutex/struct.SemMutex.html) with default [Semaphore](sem/trait.Semaphore.html) implementation
pub type SemMutex = mutex::SemMutex<Sem>;