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

Method sub

src/brpc/controller.cpp:1392–1400  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1390}
1391
1392const Controller* Controller::sub(int index) const {
1393 if (_pchan_sub_count > 0 && _done != NULL) {
1394 return GetSubControllerOfParallelChannel(_done, index);
1395 }
1396 if (_sender != NULL) {
1397 return GetSubControllerOfSelectiveChannel(_sender, index);
1398 }
1399 return NULL;
1400}
1401
1402uint64_t Controller::trace_id() const {
1403 if (auto span = _span.lock()) {

Callers 15

senderFunction · 0.80
TestSuccessMethod · 0.80
TestSuccessParallelMethod · 0.80
TestSuccessSelectiveMethod · 0.80
TestSkipParallelMethod · 0.80