Merge branch 'gitee-master' into gitlab-upstream

This commit is contained in:
zhengshuxin 2024-08-19 16:44:39 +08:00
commit c52bb82780
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(); for (std::vector<acl::connect_pool*>::iterator it = pools.begin();
it != pools.end(); ++it) 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); 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() * 使 set_idle_ttl()
* @param exclusive {bool} * @param exclusive {bool}
@ -117,14 +125,6 @@ public:
*/ */
size_t check_idle(time_t ttl, bool kick_dead, bool exclusive = true); 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 * @param count {size_t} 0