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

Method wait

test/bthread_cond_unittest.cpp:270–276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268 }
269
270 int wait(int old_signal) {
271 std::unique_lock<bthread::Mutex> lck(_m);
272 while (_signal == old_signal) {
273 _c.wait(lck);
274 }
275 return _signal;
276 }
277
278private:
279 bthread::Mutex _m;

Callers 15

TESTFunction · 0.45
cv_bmutex_waiterFunction · 0.45
cv_mutex_waiterFunction · 0.45
ping_pong_threadFunction · 0.45
wait_threadFunction · 0.45
broadcast_threadFunction · 0.45
butex_wake_all_func1Function · 0.45
butex_wake_all_func2Function · 0.45
TESTFunction · 0.45
butex_requeue_func1Function · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected