Return-Path: Delivered-To: apmail-apr-commits-archive@www.apache.org Received: (qmail 3284 invoked from network); 11 May 2007 04:27:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 May 2007 04:27:57 -0000 Received: (qmail 10493 invoked by uid 500); 11 May 2007 04:28:04 -0000 Delivered-To: apmail-apr-commits-archive@apr.apache.org Received: (qmail 10457 invoked by uid 500); 11 May 2007 04:28:03 -0000 Mailing-List: contact commits-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: Reply-To: dev@apr.apache.org List-Id: Delivered-To: mailing list commits@apr.apache.org Received: (qmail 10442 invoked by uid 99); 11 May 2007 04:28:03 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 May 2007 21:28:03 -0700 X-ASF-Spam-Status: No, hits=-99.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 May 2007 21:27:56 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 1A55B1A9838; Thu, 10 May 2007 21:27:36 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r537082 - /apr/apr-util/trunk/misc/apr_thread_pool.c Date: Fri, 11 May 2007 04:27:35 -0000 To: commits@apr.apache.org From: bojan@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070511042736.1A55B1A9838@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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 */