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

Function sid_dtor

test/bthread_key_unittest.cpp:259–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257};
258
259static void sid_dtor(void* tls){
260 SidData* data = (SidData*)tls;
261 // Should already be set NULL.
262 ASSERT_EQ(NULL, bthread_getspecific(data->key));
263 if (++data->seq < data->end_seq){
264 ASSERT_EQ(0, bthread_setspecific(data->key, data));
265 }
266}
267
268static void sid_thread_impl(SidData* data) {
269 ASSERT_EQ(0, bthread_setspecific(data->key, data));

Callers

nothing calls this directly

Calls 2

bthread_getspecificFunction · 0.85
bthread_setspecificFunction · 0.85

Tested by

no test coverage detected