Crate cond_sync

source ·
Expand description

Facilitates the synchronization of threads.

The struct CondSync is a thin wrapper around Arc<(Mutex<T>, Condvar)> and hides boiler plate code that is needed when using std::sync::Condvar directly.

Structs§

Enums§

  • Helper enum to decide if one or all of the other threads should be notified.
  • Describes why the method returned (if it returned successfully).