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

Method GetInstance

phxqueue/comm/utils/time_util.cpp:76–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74
75
76PoissonDistribution * PoissonDistribution :: GetInstance() {
77 static PoissonDistribution pd;
78 return &pd;
79}
80
81void PoissonDistribution :: Rebuild(const int base_interval_time_ms) {
82 double times_per_ms = (double)1.0 / (double)base_interval_time_ms;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected