MCPcopy 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
31void *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
38TEST(CountdonwEventTest, sanity) {
39 std::vector<bthread_t> tids;

Callers

nothing calls this directly

Calls 2

fetch_subMethod · 0.80
signalMethod · 0.80

Tested by

no test coverage detected