Skip to main content

kithara_platform/sync/
mod.rs

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