Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
G4TemplateAutoLock< M, L, U > Class Template Reference

#include <G4AutoLock.hh>

Public Member Functions

 G4TemplateAutoLock (M *mtx, L l, U u)
 
virtual ~G4TemplateAutoLock ()
 
void unlock ()
 
void lock ()
 

Detailed Description

template<class M, typename L, typename U>
class G4TemplateAutoLock< M, L, U >

Definition at line 68 of file G4AutoLock.hh.

Constructor & Destructor Documentation

template<class M, typename L, typename U>
G4TemplateAutoLock< M, L, U >::G4TemplateAutoLock ( M *  mtx,
l,
u 
)
inline

Definition at line 72 of file G4AutoLock.hh.

72  : locked(false), _m(mtx), _l(l), _u(u)
73  {
74  lock();
75  }
template<class M, typename L, typename U>
virtual G4TemplateAutoLock< M, L, U >::~G4TemplateAutoLock ( )
inlinevirtual

Definition at line 77 of file G4AutoLock.hh.

78  {
79  unlock();
80  }

Member Function Documentation

template<class M, typename L, typename U>
void G4TemplateAutoLock< M, L, U >::lock ( )
inline
template<class M, typename L, typename U>
void G4TemplateAutoLock< M, L, U >::unlock ( )
inline

The documentation for this class was generated from the following file: