X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Frts%2FOSThreads.c;h=7ed6fd8b8e732ee4e579182ea2d02ed0e8db6d1b;hb=1621421619df6f19dce3b8cb29471e5d3c731acb;hp=2a7a15251a218353875f1626d957a636fbbb1c3b;hpb=fa8faa35b45e97ceceec54adc4ae6ef92f0a5858;p=ghc-hetmet.git diff --git a/ghc/rts/OSThreads.c b/ghc/rts/OSThreads.c index 2a7a152..7ed6fd8 100644 --- a/ghc/rts/OSThreads.c +++ b/ghc/rts/OSThreads.c @@ -144,7 +144,7 @@ initCondition( Condition* pCond ) NULL); /* unnamed => process-local. */ if ( h == NULL ) { - belch("initCondition: unable to create"); + errorBelch("initCondition: unable to create"); } *pCond = h; return; @@ -154,7 +154,7 @@ void closeCondition( Condition* pCond ) { if ( CloseHandle(*pCond) == 0 ) { - belch("closeCondition: failed to close"); + errorBelch("closeCondition: failed to close"); } return; } @@ -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); + ACQUIRE_LOCK(pMut); return rtsTrue; }