Public Member Functions | Private Member Functions | Private Attributes
Poco::ScopedLock< M > Class Template Reference

#include <ScopedLock.h>

List of all members.

Public Member Functions

 ScopedLock (M &mutex)
 ~ScopedLock ()

Private Member Functions

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

Private Attributes

M & _mutex

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 50 of file ScopedLock.h.


Constructor & Destructor Documentation

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

Definition at line 57 of file ScopedLock.h.

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

Definition at line 61 of file ScopedLock.h.

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]

Member Data Documentation

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

Definition at line 67 of file ScopedLock.h.


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


pluginlib
Author(s): Tully Foote and Eitan Marder-Eppstein
autogenerated on Sat Dec 28 2013 17:20:20