MCPcopy Create free account
hub / github.com/apache/brpc / signaler

Function signaler

test/bthread_cond_unittest.cpp:42–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40const long SIGNAL_INTERVAL_US = 10000;
41
42void* 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
52void* waiter(void* void_arg) {
53 Arg* a = (Arg*)void_arg;

Callers

nothing calls this directly

Calls 3

bthread_usleepFunction · 0.85
bthread_cond_signalFunction · 0.85
gettimeofday_usFunction · 0.70

Tested by

no test coverage detected