Library: Foundation
Package: Threading
Header: Poco/ScopedLock.h
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.
explicit ScopedLock(
M & mutex
);
ScopedLock(
M & mutex,
long milliseconds
);
~ScopedLock();