| 40 | const long SIGNAL_INTERVAL_US = 10000; |
| 41 | |
| 42 | void* signaler(void* void_arg) { |
| 43 | Arg* a = (Arg*)void_arg; |
| 44 | signal_start_time = butil::gettimeofday_us(); |
| 45 | while (!stop) { |
| 46 | bthread_usleep(SIGNAL_INTERVAL_US); |
| 47 | bthread_cond_signal(&a->c); |
| 48 | } |
| 49 | return NULL; |
| 50 | } |
| 51 | |
| 52 | void* waiter(void* void_arg) { |
| 53 | Arg* a = (Arg*)void_arg; |
nothing calls this directly
no test coverage detected