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

Function get_task_group

src/bthread/butex.cpp:293–295  ·  view source on GitHub ↗

if tag is same return tls_task_group else choose one group with tag

Source from the content-addressed store, hash-verified

291
292// if tag is same return tls_task_group else choose one group with tag
293inline TaskGroup* get_task_group(TaskControl* c, bthread_tag_t tag) {
294 return is_same_tag(tag) ? tls_task_group : c->choose_one_group(tag);
295}
296
297inline void run_in_local_task_group(TaskGroup* g, TaskMeta* next_meta, bool nosignal) {
298 if (!nosignal) {

Callers 4

butex_wakeFunction · 0.85
butex_wake_nFunction · 0.85
butex_wake_exceptFunction · 0.85
erase_from_butexFunction · 0.85

Calls 2

is_same_tagFunction · 0.85
choose_one_groupMethod · 0.80

Tested by

no test coverage detected