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

Function cv_bmutex_waiter

test/bthread_cond_unittest.cpp:156–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155
156void* cv_bmutex_waiter(void* void_arg) {
157 WrapperArg* a = (WrapperArg*)void_arg;
158 std::unique_lock<bthread_mutex_t> lck(*a->mutex.native_handler());
159 while (!stop) {
160 a->cond.wait(lck);
161 }
162 return NULL;
163}
164
165void* cv_mutex_waiter(void* void_arg) {
166 WrapperArg* a = (WrapperArg*)void_arg;

Callers

nothing calls this directly

Calls 2

native_handlerMethod · 0.45
waitMethod · 0.45

Tested by

no test coverage detected