You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by fu...@apache.org on 2010/12/09 15:34:41 UTC
svn commit: r1043982 - /apr/apr-util/branches/1.3.x/misc/apr_thread_pool.c
Author: fuankg
Date: Thu Dec 9 14:34:41 2010
New Revision: 1043982
URL: http://svn.apache.org/viewvc?rev=1043982&view=rev
Log:
Renamed _self var since (Open)Watcom recognizes this as reserved.
Modified:
apr/apr-util/branches/1.3.x/misc/apr_thread_pool.c
Modified: apr/apr-util/branches/1.3.x/misc/apr_thread_pool.c
URL: http://svn.apache.org/viewvc/apr/apr-util/branches/1.3.x/misc/apr_thread_pool.c?rev=1043982&r1=1043981&r2=1043982&view=diff
==============================================================================
--- apr/apr-util/branches/1.3.x/misc/apr_thread_pool.c (original)
+++ apr/apr-util/branches/1.3.x/misc/apr_thread_pool.c Thu Dec 9 14:34:41 2010
@@ -329,15 +329,15 @@ static void *APR_THREAD_FUNC thread_pool
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;
}