Skip to main content

Module lockfree

Module lockfree 

Source
Expand description

Lock-free data structures for high-concurrency operations

This module provides lock-free implementations of common data structures to minimize contention and improve scalability.

Note: This module requires the parallel feature and is not available on WASM.

Structsยง

AtomicVectorPool
Atomic vector pool for lock-free vector operations (ADR-001)
BatchItem
Item in the batch work queue
BatchResult
Result from batch processing
LockFreeBatchProcessor
Lock-free batch processor for parallel vector operations (ADR-001)
LockFreeCounter
Lock-free counter with cache padding to prevent false sharing
LockFreeStats
Lock-free statistics collector
LockFreeWorkQueue
Lock-free ring buffer for work distribution
ObjectPool
Lock-free object pool for reducing allocations
PooledObject
RAII wrapper for pooled objects
PooledVector
RAII wrapper for pooled vectors
StatsSnapshot
VectorPoolStats
Statistics for the vector pool