Add `Locked<T>::wait()`, an alternate interface to condvars.
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()`.
Showing
Please
register
or
sign in
to comment