• Kenton Varda's avatar
    Add `Locked<T>::wait()`, an alternate interface to condvars. · 2625589f
    Kenton Varda authored
    This is better than `MutexGuarded<T>::when()` in cases where the caller already has a lock -- `when()` would require unlocking, then immediately locking again (to check the predicate).
    
    Possibly `when()` should be removed in favor of `wait()`.
    2625589f
mutex.c++ 29.8 KB