Commit 0effbe4b authored by simonmar's avatar simonmar

[project @ 2004-02-26 16:49:34 by simonmar]

waitCondition: use RELEASE_LOCK/ACQUIRE_LOCK because these check the
return value for errors.
parent 5ed8d6e0
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment