projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
062e2e4
)
[project @ 2004-02-26 16:42:57 by simonmar]
author
simonmar
<unknown>
Thu, 26 Feb 2004 16:42:57 +0000
(16:42 +0000)
committer
simonmar
<unknown>
Thu, 26 Feb 2004 16:42:57 +0000
(16:42 +0000)
Check result of SetEvent() for errors.
ghc/rts/OSThreads.c
patch
|
blob
|
history
diff --git
a/ghc/rts/OSThreads.c
b/ghc/rts/OSThreads.c
index
5d3c8c9
..
1f44f81
100644
(file)
--- 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