Lock-free stuff in Rust
Arc
: an atomically reference-counted smart pointerCondVar
: a condition variablempmc::channel
: a multi-producer multi-consumer channelmpsc::channel
: a multi-producer single-consumer channelMutex
: a mutual exclusion lockoneshot::channel
: a channel for sending a single value across threadsQueue
: a Michael & Scott queueRwLock
: a reader-writer lockSpinLock
: a spin lock