CMS 3D CMS Logo

AnyMutex< M > Class Template Reference

#include <Utilities/General/interface/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.

00040 : 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.

00041 { 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.

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


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:14:40 2009 for CMSSW by  doxygen 1.5.4