commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r810575 - /commons/sandbox/runtime/trunk/src/main/native/os/win32/pmutex.c
Date Wed, 02 Sep 2009 15:39:59 GMT
Author: mturk
Date: Wed Sep  2 15:39:58 2009
New Revision: 810575

URL: http://svn.apache.org/viewvc?rev=810575&view=rev
Log:
Fix typo

Modified:
    commons/sandbox/runtime/trunk/src/main/native/os/win32/pmutex.c

Modified: commons/sandbox/runtime/trunk/src/main/native/os/win32/pmutex.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/win32/pmutex.c?rev=810575&r1=810574&r2=810575&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/os/win32/pmutex.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/os/win32/pmutex.c Wed Sep  2 15:39:58 2009
@@ -131,13 +131,13 @@
         rc = 0;
         ws = WaitForMultipleObjectsEx(2, wh, FALSE, INFINITE, TRUE);
 
-        else if (ws == WAIT_OBJECT_0) {
+        if (ws == WAIT_OBJECT_0) {
             /* Signal event is set
              * TODO: Deliver a signal
              */
             rc = ACR_EINTR;
         }
-        if (ws == WAIT_OBJECT_0 + 1 || ws == WAIT_ABANDONED_0 + 1) {
+        else if (ws == WAIT_OBJECT_0 + 1 || ws == WAIT_ABANDONED_0 + 1) {
             /* We got the lock */
             return 0;
         }



Mime
View raw message