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

Function pool_thread_impl

test/bthread_key_unittest.cpp:368–374  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

366bool use_same_keytable = false;
367
368static void pool_thread_impl(PoolData* data) {
369 if (NULL == bthread_getspecific(data->key)) {
370 ASSERT_EQ(0, bthread_setspecific(data->key, data));
371 } else {
372 use_same_keytable = true;
373 }
374};
375
376static void* pool_thread(void* args) {
377 pool_thread_impl((PoolData*)args);

Callers 1

pool_threadFunction · 0.85

Calls 2

bthread_getspecificFunction · 0.85
bthread_setspecificFunction · 0.85

Tested by

no test coverage detected