Version: 8.3.0
YACS::BASES::AutoLocker< T > Class Template Reference

#include <AutoLocker.hxx>

Collaboration diagram for YACS::BASES::AutoLocker< T >:

Public Member Functions

 AutoLocker (T *m)
 
 ~AutoLocker ()
 

Private Attributes

T * _ptr
 

Detailed Description

template<class T>
class YACS::BASES::AutoLocker< T >

Definition at line 30 of file AutoLocker.hxx.

Constructor & Destructor Documentation

template<class T>
YACS::BASES::AutoLocker< T >::AutoLocker ( T *  m)
inline

Definition at line 33 of file AutoLocker.hxx.

References YACS::BASES::AutoLocker< T >::_ptr.

33 :_ptr(m) { _ptr->lock(); }
template<class T>
YACS::BASES::AutoLocker< T >::~AutoLocker ( )
inline

Definition at line 34 of file AutoLocker.hxx.

References YACS::BASES::AutoLocker< T >::_ptr.

34 { _ptr->unLock(); }

Member Data Documentation

template<class T>
T* YACS::BASES::AutoLocker< T >::_ptr
private

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