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

Method TaskMeta

src/bthread/task_meta.h:126–131  ·  view source on GitHub ↗

Only initialize [Not Reset] fields, other fields will be reset in bthread_start* functions

Source from the content-addressed store, hash-verified

124 // Only initialize [Not Reset] fields, other fields will be reset in
125 // bthread_start* functions
126 TaskMeta() {
127 pthread_spin_init(&version_lock, 0);
128 version_butex = butex_create_checked<uint32_t>();
129 *version_butex = 1;
130 pthread_mutex_init(&trace_lock, NULL);
131 }
132
133 ~TaskMeta() {
134 pthread_mutex_destroy(&trace_lock);

Callers

nothing calls this directly

Calls 2

pthread_spin_initFunction · 0.85
pthread_mutex_initFunction · 0.85

Tested by

no test coverage detected