[project @ 2004-02-26 16:49:34 by simonmar]
[ghc-hetmet.git] / ghc / rts / OSThreads.c
index 1f44f81..cac4abe 100644 (file)
@@ -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;
 }