CScopedLock< M > Class Template Reference

#include <Lock.h>

Collaboration diagram for CScopedLock< M >:

Collaboration graph
[legend]

Detailed Description

template<class M>
class CScopedLock< M >

A class that simplifies thread synchronization with a mutex or fastmutex.

The constructor accepts a Mutex and locks it. The destructor unlocks the mutex.

Definition at line 92 of file Lock.h.


Public Member Functions

 CScopedLock (M *mutex)
 ~CScopedLock ()

Private Attributes

M * _mutex

Constructor & Destructor Documentation

template<class M>
CScopedLock< M >::CScopedLock ( M *  mutex  )  [inline]

Definition at line 95 of file Lock.h.

References CScopedLock< M >::_mutex, and LOCK_TIMEOUT_MS.

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

Definition at line 96 of file Lock.h.

References CScopedLock< M >::_mutex.


Field Documentation

template<class M>
M* CScopedLock< M >::_mutex [private]

Definition at line 98 of file Lock.h.

Referenced by CScopedLock< M >::CScopedLock(), and CScopedLock< M >::~CScopedLock().


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

SourceForge.net Logo
Project space on SourceForge.net