Compiling one demo ok.

This commit is contained in:
shuxin   zheng 2024-08-19 16:43:46 +08:00
parent 7729ab3fe5
commit 69045352d6
2 changed files with 9 additions and 9 deletions

View File

@ -29,6 +29,6 @@ void ipc_monitor::check_idle(void)
for (std::vector<acl::connect_pool*>::iterator it = pools.begin();
it != pools.end(); ++it)
{
(*it)->check_idle(ttl_);
(*it)->check_idle((time_t) ttl_);
}
}

View File

@ -100,6 +100,14 @@ public:
*/
void put(connect_client* conn, bool keep = true);
/**
*
* @param ttl {time_t} >= 0
* @param exclusive {bool}
* @return {size_t}
*/
size_t check_idle(time_t ttl, bool exclusive = true);
/**
* 使 set_idle_ttl()
* @param exclusive {bool}
@ -117,14 +125,6 @@ public:
*/
size_t check_idle(time_t ttl, bool kick_dead, bool exclusive = true);
/**
*
* @param ttl {time_t} >= 0
* @param exclusive {bool}
* @return {size_t}
*/
size_t check_idle(time_t ttl, bool exclusive = true);
/**
*
* @param count {size_t} 0