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 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