MutexWrapper< T > Class Template Reference

#include <mutexwrapper.h>

Inherits AbstractMutexWrapper.

Collaboration diagram for MutexWrapper< T >:
Collaboration graph
[legend]

Public Member Functions

 MutexWrapper ()
virtual ~MutexWrapper ()
virtual void Lock ()
virtual void UnLock ()

Protected Member Functions

T & GetData ()

Private Attributes

wxCriticalSection mutex
data
 critical section is same as mutex except on windows it only works within one process (i.e. program). I'm gonna call it mutex.
bool locked

Friends

class ScopedLocker< T >

Detailed Description

template<class T>
class MutexWrapper< T >

Definition at line 52 of file mutexwrapper.h.


Constructor & Destructor Documentation

template<class T>
MutexWrapper< T >::MutexWrapper (  )  [inline]

Definition at line 58 of file mutexwrapper.h.

template<class T>
virtual MutexWrapper< T >::~MutexWrapper (  )  [inline, virtual]

Definition at line 60 of file mutexwrapper.h.


Member Function Documentation

template<class T>
T& MutexWrapper< T >::GetData (  )  [inline, protected]

Definition at line 71 of file mutexwrapper.h.

template<class T>
virtual void MutexWrapper< T >::Lock (  )  [inline, virtual]

Implements AbstractMutexWrapper.

Definition at line 62 of file mutexwrapper.h.

template<class T>
virtual void MutexWrapper< T >::UnLock (  )  [inline, virtual]

Implements AbstractMutexWrapper.

Definition at line 66 of file mutexwrapper.h.


Friends And Related Function Documentation

template<class T>
friend class ScopedLocker< T > [friend]

Definition at line 77 of file mutexwrapper.h.


Field Documentation

template<class T>
T MutexWrapper< T >::data [private]

critical section is same as mutex except on windows it only works within one process (i.e. program). I'm gonna call it mutex.

Definition at line 55 of file mutexwrapper.h.

template<class T>
bool MutexWrapper< T >::locked [private]

Definition at line 56 of file mutexwrapper.h.

template<class T>
wxCriticalSection MutexWrapper< T >::mutex [private]

Definition at line 54 of file mutexwrapper.h.


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

Generated on Thu Dec 29 00:11:47 2011 for SpringLobby by doxygen 1.6.3