Logo Search packages:      
Sourcecode: pwlib version File versions  Download package

void PCondMutex::WaitCondition (  )  [virtual, inherited]

This function attempts to acquire the mutex, but will block not only until the mutex is free, but also that the condition returned by the Condition() function is also met.

Definition at line 2226 of file osutils.cxx.

References PCondMutex::Condition(), PCondMutex::OnWait(), and PSemaphore::Wait().

{
  for (;;) {
    Wait();
    if (Condition())
      return;
    PMutex::Signal();
    OnWait();
    syncPoint.Wait();
  }
}


Generated by  Doxygen 1.6.0   Back to index