MCPcopy Create free account
hub / github.com/acl-dev/acl / reset_statistics

Method reset_statistics

lib_acl_cpp/src/connpool/connect_pool.cpp:162–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160}
161
162void connect_pool::reset_statistics(int inter)
163{
164 time_t now = time(NULL);
165 lock_.lock();
166 if (now - last_ >= inter) {
167 last_ = now;
168 current_used_ = 0;
169 }
170 lock_.unlock();
171}
172
173bool connect_pool::aliving()
174{

Callers 1

statisticsMethod · 0.45

Calls 2

lockMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected