CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

lockSentry< M > Class Template Reference

#include <MutexUtils.h>

Inheritance diagram for lockSentry< M >:
classLock< T, M >

List of all members.

Public Types

typedef M Mutex

Public Member Functions

 lockSentry (M &im)
 operator typename M::scoped_lock & ()
M::scoped_lock & operator() ()
 ~lockSentry ()

Private Attributes

M::scoped_lock m

Detailed Description

template<class M>
class lockSentry< M >

Definition at line 50 of file MutexUtils.h.


Member Typedef Documentation

template<class M >
typedef M lockSentry< M >::Mutex

Definition at line 52 of file MutexUtils.h.


Constructor & Destructor Documentation

template<class M >
lockSentry< M >::lockSentry ( M &  im) [inline, explicit]

Definition at line 54 of file MutexUtils.h.

:m(im) {}
template<class M >
lockSentry< M >::~lockSentry ( ) [inline]

Definition at line 55 of file MutexUtils.h.

{}

Member Function Documentation

template<class M >
lockSentry< M >::operator typename M::scoped_lock & ( ) [inline]

Definition at line 57 of file MutexUtils.h.

References lockSentry< M >::m.

{ return m;} 
template<class M >
M::scoped_lock& lockSentry< M >::operator() ( ) [inline]

Definition at line 58 of file MutexUtils.h.

References lockSentry< M >::m.

{ return m;} 

Member Data Documentation

template<class M >
M::scoped_lock lockSentry< M >::m [private]