Home | History | Annotate | Download | only in tests

Lines Matching defs:cv_

194     CHECK(0 == pthread_cond_init(&cv_, NULL));
199 CHECK(0 == pthread_cond_destroy(&cv_));
206 CHECK(0 == pthread_cond_signal(&cv_));
230 pthread_cond_wait(&cv_, &mu_);
232 ANNOTATE_CONDVAR_LOCK_WAIT(&cv_, &mu_);
244 retcode = pthread_cond_timedwait(&cv_, &mu_, &timeout);
247 ANNOTATE_CONDVAR_LOCK_WAIT(&cv_, &mu_);
252 // A hack. cv_ should be the first data member so that
255 pthread_cond_t cv_;
278 CondVar() { CHECK(0 == pthread_cond_init(&cv_, NULL)); }
279 ~CondVar() { CHECK(0 == pthread_cond_destroy(&cv_)); }
280 void Wait(Mutex *mu) { CHECK(0 == pthread_cond_wait(&cv_, &mu->mu_)); }
286 return 0 != pthread_cond_timedwait(&cv_, &mu->mu_, &timeout);
288 void Signal() { CHECK(0 == pthread_cond_signal(&cv_)); }
289 void SignalAll() { CHECK(0 == pthread_cond_broadcast(&cv_)); }
291 pthread_cond_t cv_;