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§

CondSync
A thin wrapper around Arc<(Mutex<T>, Condvar)>.
PoisonedError
The inner mutex got poisoned.

Enums§

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