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

Function bthread_key_create

src/bthread/key.cpp:595–601  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

593}
594
595int bthread_key_create(bthread_key_t* key, void (*dtor)(void*)) {
596 if (dtor == NULL) {
597 return bthread_key_create2(key, NULL, NULL);
598 } else {
599 return bthread_key_create2(key, bthread::arg_as_dtor, (const void*)dtor);
600 }
601}
602
603int bthread_key_delete(bthread_key_t key) {
604 if (key.index < bthread::KEYS_MAX &&

Callers 4

worker1_implFunction · 0.85
TESTFunction · 0.85
create_stream_key_or_dieFunction · 0.85

Calls 1

bthread_key_create2Function · 0.85

Tested by 2

worker1_implFunction · 0.68
TESTFunction · 0.68