apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject svn commit: r767895 - in /apr/apr/trunk: CHANGES locks/beos/thread_cond.c
Date Thu, 23 Apr 2009 11:48:24 GMT
Author: trawick
Date: Thu Apr 23 11:48:23 2009
New Revision: 767895

URL: http://svn.apache.org/viewvc?rev=767895&view=rev
Log:
apr_thread_cond_*wait() on BeOS: Fix broken logic.

PR: 45800
Submitted by: Jochen Voss (no e-mail)
Reviewed by: trawick

Modified:
    apr/apr/trunk/CHANGES
    apr/apr/trunk/locks/beos/thread_cond.c

Modified: apr/apr/trunk/CHANGES
URL: http://svn.apache.org/viewvc/apr/apr/trunk/CHANGES?rev=767895&r1=767894&r2=767895&view=diff
==============================================================================
--- apr/apr/trunk/CHANGES [utf-8] (original)
+++ apr/apr/trunk/CHANGES [utf-8] Thu Apr 23 11:48:23 2009
@@ -1,6 +1,9 @@
                                                      -*- coding: utf-8 -*-
 Changes for APR 2.0.0
 
+  *) apr_thread_cond_*wait() on BeOS: Fix broken logic.  PR 45800.
+     [Jochen Voss (no e-mail)]
+
   *) Set CLOEXEC flags where appropriate. Either use new O_CLOEXEC flag and
      associated functions, such as dup3(), accept4(), epoll_create1() etc.,
      or simply set CLOEXEC flag using fcntl().  PR 46425.  [Stefan Fritsch

Modified: apr/apr/trunk/locks/beos/thread_cond.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/locks/beos/thread_cond.c?rev=767895&r1=767894&r2=767895&view=diff
==============================================================================
--- apr/apr/trunk/locks/beos/thread_cond.c (original)
+++ apr/apr/trunk/locks/beos/thread_cond.c Thu Apr 23 11:48:23 2009
@@ -113,10 +113,11 @@
 
     apr_thread_mutex_lock(cond->condlock);
     
-    if (rv != B_OK)
+    if (rv != B_OK) {
         if (rv == B_TIMED_OUT)
             return APR_TIMEUP;
         return rv;       
+    }
 
     acquire_sem(cond->lock);
     APR_RING_REMOVE(wait, link);



Mime
View raw message