moirai_sync/sync/mod.rs
1/// Sharded concurrent hash map with per-segment locking.
2pub mod concurrent_hash_map;
3/// Futex-backed mutex with OS-assisted parking for fair, contended sections.
4pub mod futex_mutex;
5/// Sharded pool handing out reusable resources without a global lock.
6pub mod resource_pool;
7/// Spin lock for critical sections short enough that parking costs more
8/// than spinning.
9pub mod spin_lock;
10/// Barrier that releases once a counted set of tasks has completed.
11pub mod wait_group;
12
13#[cfg(test)]
14mod tests;
15
16pub use self::concurrent_hash_map::{ConcurrentHashMap, SegmentPoisoned};
17pub use self::futex_mutex::{FutexMutex, FutexMutexGuard};
18pub use self::resource_pool::{ShardedResourcePool, SizeBounded};
19pub use self::spin_lock::{SpinLock, SpinLockGuard};
20pub use self::wait_group::WaitGroup;