cond_sync
A thin wrapper around std::sync::CondVar and Mutex that enhances readability when synchronizing threads.
Usage
Add cond_sync
to the dependencies in your project's Cargo.toml
:
[]
= "0.2"
Example
use ;
let cond_sync = new;
for i in 0..5
// wait until all threads are initialized
cond_sync.wait_until.unwrap;
// ...
Dependencies
No dependencies.
Versions
See the change log for more details.