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

Method sub_count

src/brpc/controller.cpp:1384–1390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1382}
1383
1384int Controller::sub_count() const {
1385 int n = _pchan_sub_count;
1386 if (_sender) {
1387 n += !!GetSubControllerOfSelectiveChannel(_sender, 0);
1388 }
1389 return n;
1390}
1391
1392const Controller* Controller::sub(int index) const {
1393 if (_pchan_sub_count > 0 && _done != NULL) {

Callers 15

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

Calls 1