| 212 | } |
| 213 | |
| 214 | void connect_pool::reset_statistics(int inter) |
| 215 | { |
| 216 | time_t now = time(NULL); |
| 217 | lock_->lock(); |
| 218 | if (now - last_ >= inter) |
| 219 | { |
| 220 | last_ = now; |
| 221 | current_used_ = 0; |
| 222 | } |
| 223 | lock_->unlock(); |
| 224 | } |
| 225 | |
| 226 | } // namespace acl_min |
no test coverage detected