Don't sleep in the process of thread pool's destroy process.

This commit is contained in:
zhengshuxin 2023-11-29 11:45:40 +08:00
parent cd3d0072dd
commit 26721e203d

View File

@ -1305,7 +1305,8 @@ int acl_pthread_pool_destroy(acl_pthread_pool_t *thr_pool)
("%s(%d): worker threads exit ok, conter: %d",
myname, __LINE__, thr_pool->count);
sleep(1);
/* Don't sleep here to avoid delay thread pool's destroying process. */
/* sleep(1); */
s1 = acl_pthread_mutex_destroy(&thr_pool->poller_mutex);
s2 = acl_pthread_cond_destroy(&thr_pool->poller_cond);