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

Method notify

test/bthread_cond_unittest.cpp:264–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262protected:
263 Signal() : _signal(0) {}
264 void notify() {
265 BAIDU_SCOPED_LOCK(_m);
266 ++_signal;
267 _c.notify_one();
268 }
269
270 int wait(int old_signal) {
271 std::unique_lock<bthread::Mutex> lck(_m);

Callers 3

ping_pong_threadFunction · 0.45
TESTFunction · 0.45
TEST_FFunction · 0.45

Calls 1

notify_oneMethod · 0.80

Tested by

no test coverage detected