Home | History | Annotate | Download | only in unittest

Lines Matching refs:millis

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); }
123 bool WaitLoopWithTimeout(Condition cond, int millis) {
126 while (cond.Eval() == false && GetTimeInMs() - start_time < millis) {
163 bool WaitWithTimeout(Mutex *mu, int millis) {
166 while (!signaled_ && GetTimeInMs() - start_time < millis) {
168 if (curr_time - start_time >= millis)
171 WaitForSingleObject(hSignal_, start_time + millis - curr_time);