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

Method Signal

test/bthread_cond_unittest.cpp:427–434  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

425 }
426
427 int Signal() {
428 int ret = 0;
429 bthread_mutex_lock(&_mutex);
430 _count --;
431 bthread_cond_signal(&_cond);
432 bthread_mutex_unlock(&_mutex);
433 return ret;
434 }
435
436 int Wait() {
437 int ret = 0;

Callers

nothing calls this directly

Calls 3

bthread_mutex_lockFunction · 0.85
bthread_cond_signalFunction · 0.85
bthread_mutex_unlockFunction · 0.85

Tested by

no test coverage detected