From 5ed8d6e0729c2990e8e57d052cde54e9f5bb2396 Mon Sep 17 00:00:00 2001 From: simonmar Date: Thu, 26 Feb 2004 16:42:57 +0000 Subject: [PATCH] [project @ 2004-02-26 16:42:57 by simonmar] Check result of SetEvent() for errors. --- ghc/rts/OSThreads.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 -- 1.7.10.4