Revision: 54501
          http://brlcad.svn.sourceforge.net/brlcad/?rev=54501&view=rev
Author:   d_rossberg
Date:     2013-02-27 16:31:45 +0000 (Wed, 27 Feb 2013)
Log Message:
-----------
corrected test for failed mutex locking in Windows

Modified Paths:
--------------
    brlcad/trunk/src/libbu/semaphore.c

Modified: brlcad/trunk/src/libbu/semaphore.c
===================================================================
--- brlcad/trunk/src/libbu/semaphore.c  2013-02-27 16:28:35 UTC (rev 54500)
+++ brlcad/trunk/src/libbu/semaphore.c  2013-02-27 16:31:45 UTC (rev 54501)
@@ -427,7 +427,7 @@
     }
 #      endif
 #      if defined(_WIN32) && !defined(__CYGWIN__)
-    if (WaitForSingleObject(bu_semaphores[i].m, INFINITE)) {
+    if (WaitForSingleObject(bu_semaphores[i].m, INFINITE) == WAIT_FAILED) {
        fprintf(stderr, "bu_semaphore_acquire(): WaitForSingleObject() failed 
on [%d]\n", i);
        bu_bomb("fatal semaphore acquisition failure");
     }

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to