diff options
author | Guenter Knauf <fuankg@apache.org> | 2010-08-03 06:07:46 +0000 |
---|---|---|
committer | Guenter Knauf <fuankg@apache.org> | 2010-08-03 06:07:46 +0000 |
commit | 8d176bc08f04a9838be079e97afc8b2a111c0e08 (patch) | |
tree | 0cade99f0c964c6b2cc89b9ff156280acb06c05a /util-misc | |
parent | 81178277127ecfb7ff98ca41087d0fd896434e4a (diff) | |
download | apr-8d176bc08f04a9838be079e97afc8b2a111c0e08.tar.gz |
Renamed _self var since (Open)Watcom recognizes this as reserved.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@981753 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'util-misc')
-rw-r--r-- | util-misc/apr_thread_pool.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/util-misc/apr_thread_pool.c b/util-misc/apr_thread_pool.c index 22c544d0b..39d933055 100644 --- a/util-misc/apr_thread_pool.c +++ b/util-misc/apr_thread_pool.c @@ -342,16 +342,16 @@ 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_mutex_destroy(_self->cond_lock); - apr_thread_cond_destroy(_self->cond); + apr_thread_mutex_destroy(_myself->lock); + apr_thread_mutex_destroy(_myself->cond_lock); + apr_thread_cond_destroy(_myself->cond); return APR_SUCCESS; } |