template class Poco::ScopedLock
Overview
A class that simplifies thread synchronization with a mutex. Moreā¦
#include <ScopedLock.h> template <class M> class ScopedLock { public: // construction ScopedLock(M& mutex); ScopedLock( M& mutex, long milliseconds ); };
Detailed Documentation
A class that simplifies thread synchronization with a mutex.
The constructor accepts a Mutex (and optionally a timeout value in milliseconds) and locks it. The destructor unlocks the mutex.