#threading #predicate #boolean #variables #manuel #schölling #condition-variable

condvar

Condition variables (condvars) for boolean predicate. Based on condition_variable crate by Manuel Schölling.

2 releases

Uses old Rust 2015

0.1.1 Nov 5, 2015
0.1.0 Sep 21, 2015

#38 in #threading

GPL-2.0 license

4KB
101 lines

CondVar rust crate

Standard library conditional variables are subject for spurious wakeups. This crate is wrapper around std::sync::Condvar with boolean predicate that handles spurious wakeups, so you don't have to do it yourself. Based on condition_variable crate by Manuel Schölling.

Dependencies

~0.6–1MB
~15K SLoC