X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Frts%2FOSThreads.c;h=ca8fd6d75725aaad8790f3e01e94325220a17f56;hb=d28ae8e1a272c7827622b2b83f1d779402732103;hp=cac4abe3b5a4bb7e132520ee437c3c0361a3a9a0;hpb=0effbe4b69eb1ec22ff097b533d76b0bdb85322f;p=ghc-hetmet.git diff --git a/ghc/rts/OSThreads.c b/ghc/rts/OSThreads.c index cac4abe..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 ) { - RELEASE_LOCK(*pMut); + RELEASE_LOCK(pMut); WaitForSingleObject(*pCond, INFINITE); /* Hmm..use WaitForMultipleObjects() ? */ - ACQUIRE_LOCK(*pMut, INFINITE); + ACQUIRE_LOCK(pMut); return rtsTrue; }