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

Method Wait

test/bthread_cond_unittest.cpp:436–444  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

434 }
435
436 int Wait() {
437 int ret = 0;
438 bthread_mutex_lock(&_mutex);
439 while (_count > 0) {
440 ret = bthread_cond_wait(&_cond, &_mutex);
441 }
442 bthread_mutex_unlock(&_mutex);
443 return ret;
444 }
445private:
446 int _count;
447 bthread_cond_t _cond;

Callers 7

wait_cond_threadFunction · 0.45
VerifyPoolRunnerClass · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
TEST_FFunction · 0.45
ThreadMainMethod · 0.45

Calls 3

bthread_mutex_lockFunction · 0.85
bthread_cond_waitFunction · 0.85
bthread_mutex_unlockFunction · 0.85

Tested by

no test coverage detected