STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | Private Attributes | List of all members
lock_guard< _Mutex > Class Template Reference

Public Types

typedef _Mutex mutex_type
 

Public Member Functions

 lock_guard (_Mutex &_Mtx)
 
 lock_guard (_Mutex &_Mtx, adopt_lock_t)
 
 ~lock_guard () _NOEXCEPT
 
 lock_guard (const lock_guard &)=delete
 
lock_guardoperator= (const lock_guard &)=delete
 

Private Attributes

_Mutex & _MyMutex
 

Member Typedef Documentation

template<class _Mutex >
typedef _Mutex lock_guard< _Mutex >::mutex_type

Constructor & Destructor Documentation

template<class _Mutex >
lock_guard< _Mutex >::lock_guard ( _Mutex &  _Mtx)
inlineexplicit
216  : _MyMutex(_Mtx)
217  { // construct and lock
218  _MyMutex.lock();
219  }
_Mutex & _MyMutex
Definition: mutex:234
template<class _Mutex >
lock_guard< _Mutex >::lock_guard ( _Mutex &  _Mtx,
adopt_lock_t   
)
inline
222  : _MyMutex(_Mtx)
223  { // construct but don't lock
224  }
_Mutex & _MyMutex
Definition: mutex:234
template<class _Mutex >
lock_guard< _Mutex >::~lock_guard ( )
inline
227  { // unlock
228  _MyMutex.unlock();
229  }
_Mutex & _MyMutex
Definition: mutex:234
template<class _Mutex >
lock_guard< _Mutex >::lock_guard ( const lock_guard< _Mutex > &  )
delete

Member Function Documentation

template<class _Mutex >
lock_guard& lock_guard< _Mutex >::operator= ( const lock_guard< _Mutex > &  )
delete

Member Data Documentation

template<class _Mutex >
_Mutex& lock_guard< _Mutex >::_MyMutex
private

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