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

Method size

lib_acl_cpp/src/connpool/connect_manager.cpp:175–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173}
174
175size_t connect_manager::size() const
176{
177 size_t n = 0;
178 lock_guard guard(const_cast<connect_manager*>(this)->lock_);
179 for (manager_cit cit = manager_.begin(); cit != manager_.end(); ++cit) {
180 n += cit->second->pools.size();
181 }
182 return n;
183}
184
185void connect_manager::set(const char* addr, size_t max, int conn_timeout /* 30 */,
186 int rw_timeout /* 30 */, bool sockopt_timeo /* false */, size_t min /* 0 */)

Callers 6

getMethod · 0.45
pools_dumpMethod · 0.45
create_pools_forMethod · 0.45
peekMethod · 0.45
check_deadMethod · 0.45
keep_connsMethod · 0.45

Calls 2

beginMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected