Lines Matching refs:condvar
41 void ThreadOne(absl::Mutex* mutex, absl::CondVar* condvar, in ThreadOne() argument
54 condvar->Wait(mutex); in ThreadOne()
59 void ThreadTwo(absl::Mutex* mutex, absl::CondVar* condvar, in ThreadTwo() argument
69 condvar->Signal(); in ThreadTwo()
76 void RunTests(absl::Mutex* mutex, absl::CondVar* condvar) { in RunTests() argument
83 if (!condvar) { in RunTests()
84 condvar = &default_condvar; in RunTests()
87 std::thread thread_one(ThreadOne, mutex, condvar, ¬ification, &state); in RunTests()
88 std::thread thread_two(ThreadTwo, mutex, condvar, ¬ification, &state); in RunTests()
95 absl::CondVar condvar; in TestLocals() local
96 RunTests(&mutex, &condvar); in TestLocals()