| 50 | } |
| 51 | |
| 52 | void* waiter(void* void_arg) { |
| 53 | Arg* a = (Arg*)void_arg; |
| 54 | bthread_mutex_lock(&a->m); |
| 55 | while (!stop) { |
| 56 | bthread_cond_wait(&a->c, &a->m); |
| 57 | |
| 58 | BAIDU_SCOPED_LOCK(wake_mutex); |
| 59 | wake_tid.push_back(bthread_self()); |
| 60 | wake_time.push_back(butil::gettimeofday_us()); |
| 61 | } |
| 62 | bthread_mutex_unlock(&a->m); |
| 63 | return NULL; |
| 64 | } |
| 65 | |
| 66 | TEST(CondTest, sanity) { |
| 67 | Arg a; |
nothing calls this directly
no test coverage detected