You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by bo...@apache.org on 2007/05/11 06:27:35 UTC
svn commit: r537082 - /apr/apr-util/trunk/misc/apr_thread_pool.c
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 */