mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
address ITS#3925; please test
This commit is contained in:
parent
fe4b006e17
commit
6aa5b4f775
@ -543,7 +543,7 @@ ldap_pvt_thread_pool_pause (
|
||||
ldap_pvt_thread_mutex_lock(&pool->ltp_mutex);
|
||||
|
||||
/* If someone else has already requested a pause, we have to wait */
|
||||
if (pool->ltp_state == LDAP_INT_THREAD_POOL_PAUSING) {
|
||||
while (pool->ltp_state == LDAP_INT_THREAD_POOL_PAUSING) {
|
||||
pool->ltp_pending_count++;
|
||||
pool->ltp_active_count--;
|
||||
ldap_pvt_thread_cond_wait(&pool->ltp_cond, &pool->ltp_mutex);
|
||||
|
Loading…
Reference in New Issue
Block a user