| 160 | } |
| 161 | |
| 162 | void 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 | |
| 173 | bool connect_pool::aliving() |
| 174 | { |
no test coverage detected