apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fua...@apache.org
Subject svn commit: r981753 - /apr/apr/trunk/util-misc/apr_thread_pool.c
Date Tue, 03 Aug 2010 06:07:47 GMT
Author: fuankg
Date: Tue Aug  3 06:07:46 2010
New Revision: 981753

URL: http://svn.apache.org/viewvc?rev=981753&view=rev
Log:
Renamed _self var since (Open)Watcom recognizes this as reserved.

Modified:
    apr/apr/trunk/util-misc/apr_thread_pool.c

Modified: apr/apr/trunk/util-misc/apr_thread_pool.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/util-misc/apr_thread_pool.c?rev=981753&r1=981752&r2=981753&view=diff
==============================================================================
--- apr/apr/trunk/util-misc/apr_thread_pool.c (original)
+++ apr/apr/trunk/util-misc/apr_thread_pool.c Tue Aug  3 06:07:46 2010
@@ -342,16 +342,16 @@ 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_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;
 }
 



Mime
View raw message