1 2 3 4 5 6 7 8 9 10 11 12 13
//! Platform-optimal synchronization primitives. //! //! * **Native** — backed by [`parking_lot`] (no poisoning, smaller footprint). //! * **WASM** — backed by [`wasm_safe_thread`] (safe on the main thread). mod condvar; pub mod mpsc; mod mutex; mod rwlock; pub use condvar::Condvar; pub use mutex::{Mutex, MutexGuard, NotAvailable}; pub use rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard};