kithara-platform 0.0.1-alpha1

Platform-aware primitives (sync, traits, time) for native and wasm32 targets
Documentation
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, WaitTimeoutResult};
pub use mutex::{Mutex, MutexGuard, NotAvailable};
pub use rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard};