Poco

template < class M >

class ScopedLock

Library: Foundation
Package: Threading
Header: Poco/ScopedLock.h

Description

A class that simplifies thread synchronization with a mutex. The constructor accepts a Mutex and locks it. The destructor unlocks the mutex.

Constructors

ScopedLock inline

inline ScopedLock(
    M & mutex
);

Destructor

~ScopedLock inline

inline ~ScopedLock();