mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-30 11:39:34 -05:00
Fix pool_submit, create threads as long as we're under the max count.
This commit is contained in:
parent
675cda1b62
commit
71514ffb92
1 changed files with 2 additions and 7 deletions
|
|
@ -368,13 +368,8 @@ ldap_pvt_thread_pool_submit (
|
|||
return(0);
|
||||
}
|
||||
ldap_pvt_thread_cond_signal(&pool->ltp_cond);
|
||||
if ((pool->ltp_open_count <= 0
|
||||
#if 0
|
||||
|| pool->ltp_pending_count > 1
|
||||
#endif
|
||||
|| pool->ltp_open_count == pool->ltp_active_count)
|
||||
&& (pool->ltp_max_count <= 0
|
||||
|| pool->ltp_open_count < pool->ltp_max_count))
|
||||
if (pool->ltp_max_count <= 0
|
||||
|| pool->ltp_open_count < pool->ltp_max_count)
|
||||
{
|
||||
pool->ltp_open_count++;
|
||||
pool->ltp_starting++;
|
||||
|
|
|
|||
Loading…
Reference in a new issue