reifydb_runtime/sync/mod.rs
1// SPDX-License-Identifier: AGPL-3.0-or-later
2// Copyright (c) 2025 ReifyDB
3
4//! Synchronization primitives abstraction.
5//!
6//! Provides a unified API for synchronization primitives:
7//! - **Native**: Uses parking_lot for high-performance locking
8//! - **WASM**: Provides no-op implementations (single-threaded)
9//!
10//! # Example
11//!
12//! ```ignore
13//! use reifydb_runtime::sync::mutex::Mutex;
14//! use reifydb_runtime::sync::rwlock::RwLock;
15//!
16//! let mutex = Mutex::new(42);
17//! let rwlock = RwLock::new(vec![1, 2, 3]);
18//! ```
19
20pub mod condvar;
21pub mod map;
22pub mod mutex;
23pub mod rwlock;