MCPcopy Create free account
hub / github.com/apache/trafficserver / _top

Method _top

include/proxy/http2/Http2DependencyTree.h:503–519  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

501
502template <typename T>
503Node *
504Tree<T>::_top(Node *node)
505{
506 Node *child = node;
507
508 while (child != nullptr) {
509 if (child->active) {
510 return child;
511 } else if (!child->queue->empty()) {
512 child = child->queue->top()->node;
513 } else {
514 return nullptr;
515 }
516 }
517
518 return child;
519}
520
521template <typename T>
522Node *

Callers

nothing calls this directly

Calls 2

emptyMethod · 0.45
topMethod · 0.45

Tested by

no test coverage detected