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

Function get_task_control

src/bthread/bthread.cpp:94–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92extern void (*g_tagged_worker_startfn)(bthread_tag_t);
93
94inline TaskControl* get_task_control() {
95 return g_task_control;
96}
97
98inline TaskControl* get_or_new_task_control() {
99 butil::atomic<TaskControl*>* p = (butil::atomic<TaskControl*>*)&g_task_control;

Callers 11

stack_traceFunction · 0.70
print_living_tasksFunction · 0.70
add_workers_for_each_tagFunction · 0.70
bthread_interruptFunction · 0.70
bthread_setconcurrencyFunction · 0.70
bthread_timer_delFunction · 0.70
bthread_stop_worldFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected