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:
5ed8d6e
)
[project @ 2004-02-26 16:49:34 by simonmar]
author
simonmar
<unknown>
Thu, 26 Feb 2004 16:49:34 +0000
(16:49 +0000)
committer
simonmar
<unknown>
Thu, 26 Feb 2004 16:49:34 +0000
(16:49 +0000)
waitCondition: use RELEASE_LOCK/ACQUIRE_LOCK because these check the
return value for errors.
ghc/rts/OSThreads.c
patch
|
blob
|
history
diff --git
a/ghc/rts/OSThreads.c
b/ghc/rts/OSThreads.c
index
1f44f81
..
cac4abe
100644
(file)
--- a/
ghc/rts/OSThreads.c
+++ b/
ghc/rts/OSThreads.c
@@
-178,10
+178,10
@@
signalCondition ( Condition* pCond )
rtsBool
waitCondition ( Condition* pCond, Mutex* pMut )
{
- ReleaseMutex(*pMut);
+ RELEASE_LOCK(*pMut);
WaitForSingleObject(*pCond, INFINITE);
/* Hmm..use WaitForMultipleObjects() ? */
- WaitForSingleObject(*pMut, INFINITE);
+ ACQUIRE_LOCK(*pMut, INFINITE);
return rtsTrue;
}