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

template<class Mtx>
void Poco::Condition::wait ( Mtx &  mutex  )  [inline]

Destroys the Condition.

Unlocks the mutex (which must be locked upon calling wait()) and waits until the Condition is signalled.

The given mutex will be locked again upon leaving the function, even in case of an exception.

Definition at line 73 of file Condition.h.

            ScopedUnlock<Mtx> unlock(mutex, false);
            Event event;
                  FastMutex::ScopedLock lock(_mutex);

Generated by  Doxygen 1.6.0   Back to index