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

Method BlockTowardsRoot

core/traffic_class.cc:140–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138}
139
140void PriorityTrafficClass::BlockTowardsRoot() {
141 size_t num_children = children_.size();
142 while (first_runnable_ < num_children &&
143 children_[first_runnable_].c_->blocked_) {
144 ++first_runnable_;
145 }
146 TrafficClass::BlockTowardsRootSetBlocked(first_runnable_ == num_children);
147}
148
149void PriorityTrafficClass::FinishAndAccountTowardsRoot(
150 SchedWakeupQueue *wakeup_queue, TrafficClass *child, resource_arr_t usage,

Callers

nothing calls this directly

Calls 4

sizeMethod · 0.80
delete_single_elementMethod · 0.80
emptyMethod · 0.80
beginMethod · 0.45

Tested by

no test coverage detected