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

Method wait

src/bthread/condition_variable.h:58–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56 native_handler_type native_handler() { return &_cond; }
57
58 void wait(std::unique_lock<bthread::Mutex>& lock) {
59 bthread_cond_wait(&_cond, lock.mutex()->native_handler());
60 }
61
62 void wait(std::unique_lock<bthread_mutex_t>& lock) {
63 bthread_cond_wait(&_cond, lock.mutex());

Callers

nothing calls this directly

Calls 3

bthread_cond_waitFunction · 0.85
native_handlerMethod · 0.45
mutexMethod · 0.45

Tested by

no test coverage detected