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

Function lid_worker_impl

test/bthread_key_unittest.cpp:578–581  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

576}
577
578static void lid_worker_impl(bthread_key_t key) {
579 ASSERT_EQ(NULL, bthread_getspecific(key));
580 ASSERT_EQ(0, bthread_setspecific(key, (void*)lid_seq.fetch_add(1)));
581}
582
583static void* lid_worker(void* arg) {
584 lid_worker_impl(*static_cast<bthread_key_t*>(arg));

Callers 1

lid_workerFunction · 0.85

Calls 3

bthread_getspecificFunction · 0.85
bthread_setspecificFunction · 0.85
fetch_addMethod · 0.80

Tested by

no test coverage detected