diff options
author | fuankg <fuankg@13f79535-47bb-0310-9956-ffa450edef68> | 2010-12-09 14:34:41 +0000 |
---|---|---|
committer | fuankg <fuankg@13f79535-47bb-0310-9956-ffa450edef68> | 2010-12-09 14:34:41 +0000 |
commit | 1fb109c16f06a13870ad657a79eced3c2496b905 (patch) | |
tree | 936a8923c8e3afec3636327641068a2171fea2d1 | |
parent | 232daf9116e36a41f187e16a6dbe667750c3e7e3 (diff) | |
download | libapr-util-1fb109c16f06a13870ad657a79eced3c2496b905.tar.gz |
Renamed _self var since (Open)Watcom recognizes this as reserved.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/branches/1.3.x@1043982 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | misc/apr_thread_pool.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/misc/apr_thread_pool.c b/misc/apr_thread_pool.c index a3b9bc20..a53973f1 100644 --- a/misc/apr_thread_pool.c +++ b/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; } |