[project @ 2004-02-26 16:42:57 by simonmar]
authorsimonmar <unknown>
Thu, 26 Feb 2004 16:42:57 +0000 (16:42 +0000)
committersimonmar <unknown>
Thu, 26 Feb 2004 16:42:57 +0000 (16:42 +0000)
Check result of SetEvent() for errors.

ghc/rts/OSThreads.c

index 5d3c8c9..1f44f81 100644 (file)
@@ -169,8 +169,10 @@ broadcastCondition ( Condition* pCond )
 rtsBool
 signalCondition ( Condition* pCond )
 {
-  SetEvent(*pCond);
-  return rtsTrue;
+    if (SetEvent(*pCond) == 0) {
+       barf("SetEvent: %d", GetLastError());
+    }
+    return rtsTrue;
 }
 
 rtsBool