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

Function worker2_impl

test/bthread_key_unittest.cpp:159–162  ·  view source on GitHub ↗

NOTE: returns void to use ASSERT

Source from the content-addressed store, hash-verified

157
158// NOTE: returns void to use ASSERT
159static void worker2_impl(bthread_key_t k) {
160 ASSERT_EQ(NULL, bthread_getspecific(k));
161 ASSERT_EQ(0, bthread_setspecific(k, (void*)seq.fetch_add(1)));
162}
163
164static void* worker2(void* arg) {
165 worker2_impl(*static_cast<bthread_key_t*>(arg));

Callers 1

worker2Function · 0.85

Calls 3

bthread_getspecificFunction · 0.85
bthread_setspecificFunction · 0.85
fetch_addMethod · 0.80

Tested by

no test coverage detected