MCPcopy Create free account
hub / github.com/NetSys/bess / UnblockTowardsRoot

Method UnblockTowardsRoot

core/traffic_class.cc:129–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127}
128
129void PriorityTrafficClass::UnblockTowardsRoot(uint64_t tsc) {
130 size_t num_children = children_.size();
131 for (first_runnable_ = 0; first_runnable_ < num_children; ++first_runnable_) {
132 if (!children_[first_runnable_].c_->blocked_) {
133 break;
134 }
135 }
136 TrafficClass::UnblockTowardsRootSetBlocked(tsc,
137 first_runnable_ >= num_children);
138}
139
140void PriorityTrafficClass::BlockTowardsRoot() {
141 size_t num_children = children_.size();

Callers 1

WakeTCsMethod · 0.45

Calls 4

sizeMethod · 0.80
emptyMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected