MLockPtr< T > Class Template Reference

This can be used to have the compile help us find code that is not threadsafe. More...

#include <MercuryThreads.h>

Collaboration diagram for MLockPtr< T >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MLockPtr (volatile const T &obj, const MercuryMutex &mutex)
 ~MLockPtr ()
T & operator * ()
T * operator-> ()

Private Member Functions

 MLockPtr (const MLockPtr &)
MLockPtroperator= (const MLockPtr &)

Private Attributes

T * m_obj
MercuryMutexm_mutex

Detailed Description

template<typename T>
class MLockPtr< T >

This can be used to have the compile help us find code that is not threadsafe.

Definition at line 89 of file MercuryThreads.h.


Constructor & Destructor Documentation

template<typename T>
MLockPtr< T >::MLockPtr ( volatile const T &  obj,
const MercuryMutex mutex 
) [inline]

Definition at line 92 of file MercuryThreads.h.

template<typename T>
MLockPtr< T >::~MLockPtr (  )  [inline]

Definition at line 97 of file MercuryThreads.h.

template<typename T>
MLockPtr< T >::MLockPtr ( const MLockPtr< T > &   )  [private]


Member Function Documentation

template<typename T>
T& MLockPtr< T >::operator * (  )  [inline]

Definition at line 98 of file MercuryThreads.h.

template<typename T>
T* MLockPtr< T >::operator-> (  )  [inline]

Definition at line 99 of file MercuryThreads.h.

template<typename T>
MLockPtr& MLockPtr< T >::operator= ( const MLockPtr< T > &   )  [private]


Member Data Documentation

template<typename T>
T* MLockPtr< T >::m_obj [private]

Definition at line 101 of file MercuryThreads.h.

template<typename T>
MercuryMutex* MLockPtr< T >::m_mutex [private]

Definition at line 102 of file MercuryThreads.h.


The documentation for this class was generated from the following file:
Hosted by SourceForge.net Logo