Skip to main content

Module sync

Module sync 

Source
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]);

Modules§

condvar
Condvar synchronization primitive.
map
Concurrent map abstraction that provides a unified API across native and WASM targets.
mutex
rwlock
RwLock synchronization primitive.