apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fua...@apache.org
Subject svn commit: r1043978 - /apr/apr-util/branches/1.4.x/misc/apr_thread_pool.c
Date Thu, 09 Dec 2010 14:33:17 GMT
Author: fuankg
Date: Thu Dec  9 14:33:16 2010
New Revision: 1043978

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

Modified:
    apr/apr-util/branches/1.4.x/misc/apr_thread_pool.c

Modified: apr/apr-util/branches/1.4.x/misc/apr_thread_pool.c
URL: http://svn.apache.org/viewvc/apr/apr-util/branches/1.4.x/misc/apr_thread_pool.c?rev=1043978&r1=1043977&r2=1043978&view=diff
==============================================================================
--- apr/apr-util/branches/1.4.x/misc/apr_thread_pool.c (original)
+++ apr/apr-util/branches/1.4.x/misc/apr_thread_pool.c Thu Dec  9 14:33:16 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;
 }
 



Mime
View raw message