| What it is | Compact, fast mutexes, read-write locks and condition variables for Rust | Blazing fast concurrent HashMap for Rust | Tools for concurrent programming in Rust: channels, queues, atomics and scoped threads |
| Features | - Mutex and Once in 1 byte, Condvar and RwLock in 1 word
- Uncontended lock and unlock in a single atomic operation
- Adaptive spinning before parking the thread
- Task-fair RwLock with downgradable and upgradable read locks
- Condvar without spurious wakeups
- Optional deadlock detection and serde support
| - drop-in replacement for RwLock<HashMap>
- methods take &self, so it can be shared in an Arc and modified from many threads
- HashMap-like API
- optional serde and rayon support
| - multi-producer multi-consumer channels (crossbeam-channel)
- work-stealing deques for task schedulers
- bounded ArrayQueue and unbounded SegQueue
- epoch-based memory reclamation for lock-free data structures
- AtomicCell, ShardedLock, Parker, WaitGroup and Backoff
- scoped threads that borrow from the stack
- many features usable in no_std environments
|