summaryrefslogtreecommitdiff
path: root/srclib/apr-util/misc/apr_thread_pool.c
diff options
context:
space:
mode:
Diffstat (limited to 'srclib/apr-util/misc/apr_thread_pool.c')
-rw-r--r--srclib/apr-util/misc/apr_thread_pool.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/srclib/apr-util/misc/apr_thread_pool.c b/srclib/apr-util/misc/apr_thread_pool.c
index a3b9bc20..a53973f1 100644
--- a/srclib/apr-util/misc/apr_thread_pool.c
+++ b/srclib/apr-util/misc/apr_thread_pool.c
@@ -329,15 +329,15 @@ static void *APR_THREAD_FUNC thread_pool_func(apr_thread_t * t, void *param)
static apr_status_t thread_pool_cleanup(void *me)
{
- apr_thread_pool_t *_self = me;
+ apr_thread_pool_t *_myself = me;
- _self->terminated = 1;
- apr_thread_pool_idle_max_set(_self, 0);
- while (_self->thd_cnt) {
+ _myself->terminated = 1;
+ apr_thread_pool_idle_max_set(_myself, 0);
+ while (_myself->thd_cnt) {
apr_sleep(20 * 1000); /* spin lock with 20 ms */
}
- apr_thread_mutex_destroy(_self->lock);
- apr_thread_cond_destroy(_self->cond);
+ apr_thread_mutex_destroy(_myself->lock);
+ apr_thread_cond_destroy(_myself->cond);
return APR_SUCCESS;
}