CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

AnyMutex< M > Class Template Reference

#include <MutexUtils.h>

Inheritance diagram for AnyMutex< M >:
MutexI

List of all members.

Public Types

typedef M Mutex
typedef MutexI::scoped_lock scoped_lock

Public Member Functions

 AnyMutex (M &im)
void lock ()
void unlock ()

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.

: m(im){}

Member Function Documentation

template<class M = boost::recursive_mutex>
void AnyMutex< M >::lock ( void  ) [inline, virtual]

Implements MutexI.

Definition at line 41 of file MutexUtils.h.

References AnyMutex< M >::m.

{ m.lock();}
template<class M = boost::recursive_mutex>
void AnyMutex< M >::unlock ( void  ) [inline, virtual]

Implements MutexI.

Definition at line 42 of file MutexUtils.h.

References AnyMutex< M >::m.

{ 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().