Home | History | Annotate | Download | only in tests

Lines Matching full:condition

158 /// Just a boolean condition. Used by Mutex::LockWhen and similar.
159 class Condition {
164 Condition(bool (*func)(T*), T* arg)
167 Condition(bool (*func)())
214 void LockWhen(Condition cond) { Lock(); WaitLoop(cond); }
215 void ReaderLockWhen(Condition cond) { Lock(); WaitLoop(cond); }
216 void Await(Condition cond) { WaitLoop(cond); }
218 bool ReaderLockWhenWithTimeout(Condition cond, int millis)
220 bool LockWhenWithTimeout(Condition cond, int millis)
222 bool AwaitWithTimeout(Condition cond, int millis)
227 void WaitLoop(Condition cond) {
235 bool WaitLoopWithTimeout(Condition cond, int millis) {
394 mu_.LockWhen(Condition(IsQueueNotEmpty, &q_));
581 mu_.LockWhen(Condition(&IsZero, &count_));