Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/brpc
/ signaler
Function
signaler
test/bthread_countdown_event_unittest.cpp:31–36 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
29
};
30
31
void *signaler(void *arg) {
32
Arg* a = (Arg*)arg;
33
a->num_sig.fetch_sub(1, butil::memory_order_relaxed);
34
a->event.signal();
35
return NULL;
36
}
37
38
TEST(CountdonwEventTest, sanity) {
39
std::vector<bthread_t> tids;
Callers
nothing calls this directly
Calls
2
fetch_sub
Method · 0.80
signal
Method · 0.80
Tested by
no test coverage detected