apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bo...@apache.org
Subject svn commit: r537082 - /apr/apr-util/trunk/misc/apr_thread_pool.c
Date Fri, 11 May 2007 04:27:35 GMT
Author: bojan
Date: Thu May 10 21:27:32 2007
New Revision: 537082

URL: http://svn.apache.org/viewvc?view=rev&rev=537082
Log:
Fix bug #42294
Correct variable declaration, before code
Patch by Davi Arnaut

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

Modified: apr/apr-util/trunk/misc/apr_thread_pool.c
URL: http://svn.apache.org/viewvc/apr/apr-util/trunk/misc/apr_thread_pool.c?view=diff&rev=537082&r1=537081&r2=537082
==============================================================================
--- apr/apr-util/trunk/misc/apr_thread_pool.c (original)
+++ apr/apr-util/trunk/misc/apr_thread_pool.c Thu May 10 21:27:32 2007
@@ -595,6 +595,9 @@
 
 static void wait_on_busy_threads(apr_thread_pool_t * me, void *owner)
 {
+#ifndef NDEBUG
+    apr_os_thread_t *os_thread;
+#endif
     struct apr_thread_list_elt *elt;
     apr_thread_mutex_lock(me->lock);
     elt = APR_RING_FIRST(me->busy_thds);
@@ -605,7 +608,6 @@
         }
 #ifndef NDEBUG
         /* make sure the thread is not the one calling tasks_cancel */
-        apr_os_thread_t *os_thread;
         apr_os_thread_get(&os_thread, elt->thd);
 #ifdef WIN32
         /* hack for apr win32 bug */



Mime
View raw message