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

Method set_alive

lib_acl_cpp/independent/connpool/src/connect_pool.cpp:147–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147void connect_pool::set_alive(bool ok /* true | false */)
148{
149 lock_->lock();
150 alive_ = ok;
151 if (ok == false)
152 time(&last_dead_);
153 lock_->unlock();
154}
155
156int connect_pool::check_idle(time_t ttl, bool exclusive /* = true */)
157{

Callers

nothing calls this directly

Calls 2

lockMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected