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

Function cv_mutex_waiter

test/bthread_cond_unittest.cpp:165–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165void* cv_mutex_waiter(void* void_arg) {
166 WrapperArg* a = (WrapperArg*)void_arg;
167 std::unique_lock<bthread::Mutex> lck(a->mutex);
168 while (!stop) {
169 a->cond.wait(lck);
170 }
171 return NULL;
172}
173
174
175void* cv_bmutex_waiter_with_pred(void* void_arg) {

Callers

nothing calls this directly

Calls 1

waitMethod · 0.45

Tested by

no test coverage detected