Lines Matching refs:cond
100 void LockWhen(Condition cond) { Lock(); WaitLoop(cond); }
101 void ReaderLockWhen(Condition cond) { Lock(); WaitLoop(cond); }
102 void Await(Condition cond) { WaitLoop(cond); }
104 bool ReaderLockWhenWithTimeout(Condition cond, int millis)
105 { Lock(); return WaitLoopWithTimeout(cond, millis); }
106 bool LockWhenWithTimeout(Condition cond, int millis)
107 { Lock(); return WaitLoopWithTimeout(cond, millis); }
108 bool AwaitWithTimeout(Condition cond, int millis)
109 { return WaitLoopWithTimeout(cond, millis); }
113 void WaitLoop(Condition cond) {
114 while(cond.Eval() == false) {
123 bool WaitLoopWithTimeout(Condition cond, int millis) {
126 while (cond.Eval() == false && GetTimeInMs() - start_time < millis) {
133 if (cond.Eval() == 0) {