Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
262
protected:
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_thread
Function · 0.45
TEST
Function · 0.45
TEST_F
Function · 0.45
Calls
1
notify_one
Method · 0.80
Tested by
no test coverage detected