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
lockSentry< M > Class Template Reference

#include <MutexUtils.h>

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

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)
inlineexplicit

Definition at line 54 of file MutexUtils.h.

54 :m(im) {}
M::scoped_lock m
Definition: MutexUtils.h:61
template<class M >
lockSentry< M >::~lockSentry ( )
inline

Definition at line 55 of file MutexUtils.h.

55 {}

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.

57 { return m;}
M::scoped_lock m
Definition: MutexUtils.h:61
template<class M >
M::scoped_lock& lockSentry< M >::operator() ( )
inline

Definition at line 58 of file MutexUtils.h.

References lockSentry< M >::m.

58 { return m;}
M::scoped_lock m
Definition: MutexUtils.h:61

Member Data Documentation

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