CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Attributes
AnyMutex< M > Class Template Reference

#include <MutexUtils.h>

Inheritance diagram for AnyMutex< M >:
MutexI

Public Types

typedef M Mutex
 
typedef MutexI::scoped_lock scoped_lock
 

Public Member Functions

 AnyMutex (M &im)
 
void lock ()
 
void unlock ()
 
- Public Member Functions inherited from MutexI
virtual ~MutexI ()
 

Private Attributes

M & m
 

Detailed Description

template<class M = boost::recursive_mutex>
class AnyMutex< M >

Definition at line 35 of file MutexUtils.h.

Member Typedef Documentation

template<class M = boost::recursive_mutex>
typedef M AnyMutex< M >::Mutex

Definition at line 38 of file MutexUtils.h.

template<class M = boost::recursive_mutex>
typedef MutexI::scoped_lock AnyMutex< M >::scoped_lock

Definition at line 39 of file MutexUtils.h.

Constructor & Destructor Documentation

template<class M = boost::recursive_mutex>
AnyMutex< M >::AnyMutex ( M &  im)
inline

Definition at line 40 of file MutexUtils.h.

40 : m(im){}

Member Function Documentation

template<class M = boost::recursive_mutex>
void AnyMutex< M >::lock ( void  )
inlinevirtual

Implements MutexI.

Definition at line 41 of file MutexUtils.h.

References AnyMutex< M >::m.

41 { m.lock();}
template<class M = boost::recursive_mutex>
void AnyMutex< M >::unlock ( void  )
inlinevirtual

Implements MutexI.

Definition at line 42 of file MutexUtils.h.

References AnyMutex< M >::m.

42 { m.unlock();}

Member Data Documentation

template<class M = boost::recursive_mutex>
M& AnyMutex< M >::m
private

Definition at line 36 of file MutexUtils.h.

Referenced by AnyMutex< M >::lock(), and AnyMutex< M >::unlock().