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

Public Types

typedef unique_lock< _Mutex > _Myt
 
typedef _Mutex mutex_type
 

Public Member Functions

 unique_lock () _NOEXCEPT
 
 unique_lock (_Mutex &_Mtx)
 
 unique_lock (_Mutex &_Mtx, adopt_lock_t)
 
 unique_lock (_Mutex &_Mtx, defer_lock_t) _NOEXCEPT
 
 unique_lock (_Mutex &_Mtx, try_to_lock_t)
 
template<class _Rep , class _Period >
 unique_lock (_Mutex &_Mtx, const chrono::duration< _Rep, _Period > &_Rel_time)
 
template<class _Clock , class _Duration >
 unique_lock (_Mutex &_Mtx, const chrono::time_point< _Clock, _Duration > &_Abs_time)
 
 unique_lock (_Mutex &_Mtx, const xtime *_Abs_time)
 
 unique_lock (unique_lock &&_Other) _NOEXCEPT
 
unique_lockoperator= (unique_lock &&_Other) _NOEXCEPT
 
 ~unique_lock () _NOEXCEPT
 
 unique_lock (const unique_lock &)=delete
 
unique_lockoperator= (const unique_lock &)=delete
 
void lock ()
 
bool try_lock () _NOEXCEPT
 
template<class _Rep , class _Period >
bool try_lock_for (const chrono::duration< _Rep, _Period > &_Rel_time)
 
template<class _Clock , class _Duration >
bool try_lock_until (const chrono::time_point< _Clock, _Duration > &_Abs_time)
 
bool try_lock_until (const xtime *_Abs_time)
 
void unlock ()
 
void swap (unique_lock &_Other) _NOEXCEPT
 
_Mutex * release () _NOEXCEPT
 
bool owns_lock () const _NOEXCEPT
 
 operator bool () const _NOEXCEPT
 
_Mutex * mutex () const _NOEXCEPT
 

Private Attributes

_Mutex * _Pmtx
 
bool _Owns
 

Member Typedef Documentation

template<class _Mutex>
typedef unique_lock<_Mutex> unique_lock< _Mutex >::_Myt
template<class _Mutex>
typedef _Mutex unique_lock< _Mutex >::mutex_type

Constructor & Destructor Documentation

template<class _Mutex>
unique_lock< _Mutex >::unique_lock ( )
inline
template<class _Mutex>
unique_lock< _Mutex >::unique_lock ( _Mutex &  _Mtx)
inlineexplicit
template<class _Mutex>
unique_lock< _Mutex >::unique_lock ( _Mutex &  _Mtx,
adopt_lock_t   
)
inline
template<class _Mutex>
unique_lock< _Mutex >::unique_lock ( _Mutex &  _Mtx,
defer_lock_t   
)
inline
template<class _Mutex>
unique_lock< _Mutex >::unique_lock ( _Mutex &  _Mtx,
try_to_lock_t   
)
inline
template<class _Mutex>
template<class _Rep , class _Period >
unique_lock< _Mutex >::unique_lock ( _Mutex &  _Mtx,
const chrono::duration< _Rep, _Period > &  _Rel_time 
)
inline
template<class _Mutex>
template<class _Clock , class _Duration >
unique_lock< _Mutex >::unique_lock ( _Mutex &  _Mtx,
const chrono::time_point< _Clock, _Duration > &  _Abs_time 
)
inline
template<class _Mutex>
unique_lock< _Mutex >::unique_lock ( _Mutex &  _Mtx,
const xtime _Abs_time 
)
inline
template<class _Mutex>
unique_lock< _Mutex >::unique_lock ( unique_lock< _Mutex > &&  _Other)
inline
template<class _Mutex>
unique_lock< _Mutex >::~unique_lock ( )
inline
template<class _Mutex>
unique_lock< _Mutex >::unique_lock ( const unique_lock< _Mutex > &  )
delete

Member Function Documentation

template<class _Mutex>
void unique_lock< _Mutex >::lock ( )
inline
template<class _Mutex>
_Mutex* unique_lock< _Mutex >::mutex ( ) const
inline
template<class _Mutex>
unique_lock< _Mutex >::operator bool ( ) const
inlineexplicit
template<class _Mutex>
unique_lock& unique_lock< _Mutex >::operator= ( unique_lock< _Mutex > &&  _Other)
inline
template<class _Mutex>
unique_lock& unique_lock< _Mutex >::operator= ( const unique_lock< _Mutex > &  )
delete
template<class _Mutex>
bool unique_lock< _Mutex >::owns_lock ( ) const
inline
template<class _Mutex>
_Mutex* unique_lock< _Mutex >::release ( )
inline
template<class _Mutex>
void unique_lock< _Mutex >::swap ( unique_lock< _Mutex > &  _Other)
inline
template<class _Mutex>
bool unique_lock< _Mutex >::try_lock ( )
inline
template<class _Mutex>
template<class _Rep , class _Period >
bool unique_lock< _Mutex >::try_lock_for ( const chrono::duration< _Rep, _Period > &  _Rel_time)
inline
template<class _Mutex>
template<class _Clock , class _Duration >
bool unique_lock< _Mutex >::try_lock_until ( const chrono::time_point< _Clock, _Duration > &  _Abs_time)
inline
template<class _Mutex>
bool unique_lock< _Mutex >::try_lock_until ( const xtime _Abs_time)
inline
template<class _Mutex>
void unique_lock< _Mutex >::unlock ( )
inline

Member Data Documentation

template<class _Mutex>
bool unique_lock< _Mutex >::_Owns
private
template<class _Mutex>
_Mutex* unique_lock< _Mutex >::_Pmtx
private

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