X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Frts%2FOSThreads.c;h=ca8fd6d75725aaad8790f3e01e94325220a17f56;hb=a20ec0ced36bca7cd0594528922dbe31a6186eae;hp=1f44f81203373dff05d385c3af87f84e42fc311c;hpb=5ed8d6e0729c2990e8e57d052cde54e9f5bb2396;p=ghc-hetmet.git diff --git a/ghc/rts/OSThreads.c b/ghc/rts/OSThreads.c index 1f44f81..ca8fd6d 100644 --- 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); return rtsTrue; }