| 1390 | } |
| 1391 | |
| 1392 | const 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 | |
| 1402 | uint64_t Controller::trace_id() const { |
| 1403 | if (auto span = _span.lock()) { |