Poco::ScopedLock< M > Class Template Reference

#include <ScopedLock.h>

Collaboration diagram for Poco::ScopedLock< M >:

Collaboration graph
[legend]

Detailed Description

template<class M>
class Poco::ScopedLock< M >

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

Definition at line 86 of file ScopedLock.h.


Public Member Functions

 ScopedLock (M &mutex)
 ~ScopedLock ()

Private Member Functions

 ScopedLock ()
 ScopedLock (const ScopedLock &)
ScopedLockoperator= (const ScopedLock &)

Private Attributes

M & _mutex

Constructor & Destructor Documentation

template<class M>
Poco::ScopedLock< M >::ScopedLock ( M &  mutex  )  [inline]

Definition at line 93 of file ScopedLock.h.

References Poco::ScopedLock< M >::_mutex.

template<class M>
Poco::ScopedLock< M >::~ScopedLock (  )  [inline]

Definition at line 97 of file ScopedLock.h.

References Poco::ScopedLock< M >::_mutex.

template<class M>
Poco::ScopedLock< M >::ScopedLock (  )  [private]

template<class M>
Poco::ScopedLock< M >::ScopedLock ( const ScopedLock< M > &   )  [private]


Member Function Documentation

template<class M>
ScopedLock& Poco::ScopedLock< M >::operator= ( const ScopedLock< M > &   )  [private]


Field Documentation

template<class M>
M& Poco::ScopedLock< M >::_mutex [private]


The documentation for this class was generated from the following file:

SourceForge.net Logo
Project space on SourceForge.net