Module lib_wc::sync

source ·
Expand description

Synchronization tools for concurrent programming

Modules

Concurrent data structures
Multiple producer, multiple consumer channels
A single-producer single-consumer channel that sends a single value

Structs

a primitive to signal and wait on a condition
a primitive for mutual exclusion
This mutex is naive because it optimize the scenario where multiple threads are in contention for the lock. See crate::concurrent::sync::Mutex for an optimized implementation.
A client-side rate limiter. This is useful for limiting the number of queries sent to a server from a single client. For example, it is useful inside of a web crawler to limit the number of requests sent by the crawler.
a primitive for mutual exclusion that allows multiple readers or one writer at a time
a primitive to limit access
a primitive for mutual exclusion that spins in a loop