MCPcopy Create free account
hub / github.com/Tencent/phxqueue / RealtimeChangeBaseIntervalMs

Method RealtimeChangeBaseIntervalMs

phxqueue/comm/utils/time_util.cpp:114–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114void PoissonDistribution :: RealtimeChangeBaseIntervalMs(const int new_base_interval_ms)
115{
116 if (new_base_interval_ms != impl_->last_base_interval_time_ms) {
117 impl_->last_base_interval_time_ms = new_base_interval_ms;
118 impl_->base_interval_time_change = true;
119 }
120}
121
122int PoissonDistribution :: NextIntervalSleepMs()
123{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected