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

Function pool_dtor

test/bthread_key_unittest.cpp:381–388  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

379}
380
381static void pool_dtor(void* tls){
382 PoolData* data = (PoolData*)tls;
383 // Should already be set NULL.
384 ASSERT_EQ(NULL, bthread_getspecific(data->key));
385 if (++data->seq < data->end_seq){
386 ASSERT_EQ(0, bthread_setspecific(data->key, data));
387 }
388}
389
390TEST(KeyTest, using_pool) {
391 bthread_key_t key;

Callers

nothing calls this directly

Calls 2

bthread_getspecificFunction · 0.85
bthread_setspecificFunction · 0.85

Tested by

no test coverage detected