Expand description
Synchronization primitives abstraction.
Provides a unified API for synchronization primitives:
- Native: Uses parking_lot for high-performance locking
- WASM: Provides no-op implementations (single-threaded)
§Example
ⓘ
use reifydb_runtime::sync::mutex::Mutex;
use reifydb_runtime::sync::rwlock::RwLock;
let mutex = Mutex::new(42);
let rwlock = RwLock::new(vec![1, 2, 3]);