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

Method for_each_task_group

src/bthread/task_control.h:195–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193
194template <typename F>
195inline void TaskControl::for_each_task_group(F const& f) {
196 if (_init.load(butil::memory_order_acquire) == false) {
197 return;
198 }
199 for (size_t i = 0; i < _tagged_groups.size(); ++i) {
200 auto ngroup = tag_ngroup(i).load(butil::memory_order_relaxed);
201 auto& groups = tag_group(i);
202 for (size_t j = 0; j < ngroup; ++j) {
203 f(groups[j]);
204 }
205 }
206}
207
208} // namespace bthread
209

Callers

nothing calls this directly

Calls 3

fFunction · 0.50
loadMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected