22 DEFINE_int32(codel_interval, 100,
"Codel default interval time in ms");
23 DEFINE_int32(codel_target_delay, 5,
"Target codel queueing delay in ms");
30 : codelMinDelayNs_(0),
32 duration_cast<nanoseconds>(steady_clock::
now().time_since_epoch())
34 codelResetDelay_(true),
50 duration_cast<nanoseconds>((
now +
getInterval()).time_since_epoch())
94 return milliseconds(FLAGS_codel_interval);
98 return milliseconds(FLAGS_codel_target_delay);
std::atomic< bool > overloaded_
std::chrono::milliseconds getTargetDelay()
std::chrono::steady_clock::time_point now()
—— Concurrent Priority Queue Implementation ——
DEFINE_int32(codel_interval, 100,"Codel default interval time in ms")
std::atomic< uint64_t > codelIntervalTimeNs_
std::atomic< bool > codelResetDelay_
std::chrono::nanoseconds getMinDelay()
bool overloaded(std::chrono::nanoseconds delay)
std::chrono::milliseconds getInterval()
std::atomic< uint64_t > codelMinDelayNs_
std::chrono::milliseconds getSloughTimeout()