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

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

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

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

Throws a TimeoutException if the Condition is not signalled within the given time interval.

Definition at line 91 of file Condition.h.

            if (!tryWait(mutex, milliseconds))
                  throw TimeoutException();

Generated by  Doxygen 1.6.0   Back to index