From: simonmar Date: Thu, 26 Feb 2004 16:42:57 +0000 (+0000) Subject: [project @ 2004-02-26 16:42:57 by simonmar] X-Git-Tag: Approx_11550_changesets_converted~46 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=5ed8d6e0729c2990e8e57d052cde54e9f5bb2396;p=ghc-hetmet.git [project @ 2004-02-26 16:42:57 by simonmar] Check result of SetEvent() for errors. --- diff --git a/ghc/rts/OSThreads.c b/ghc/rts/OSThreads.c index 5d3c8c9..1f44f81 100644 --- a/ghc/rts/OSThreads.c +++ b/ghc/rts/OSThreads.c @@ -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