Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::unique_lock< Mutex > Class Template Reference

#include <lock_types.hpp>

Inheritance diagram for boost::unique_lock< Mutex >:

Public Types

typedef Mutex mutex_type
 

Public Member Functions

 unique_lock () BOOST_NOEXCEPT
 
 unique_lock (Mutex &m_)
 
 unique_lock (Mutex &m_, adopt_lock_t)
 
 unique_lock (Mutex &m_, defer_lock_t) BOOST_NOEXCEPT
 
 unique_lock (Mutex &m_, try_to_lock_t)
 
 unique_lock (BOOST_THREAD_RV_REF(unique_lock) other) BOOST_NOEXCEPT
 
BOOST_THREAD_EXPLICIT_LOCK_CONVERSION unique_lock (BOOST_THREAD_RV_REF_BEG upgrade_lock< Mutex > BOOST_THREAD_RV_REF_END other)
 
unique_lockoperator= (BOOST_THREAD_RV_REF_BEG upgrade_lock< Mutex > BOOST_THREAD_RV_REF_END other)
 
unique_lockoperator= (BOOST_THREAD_RV_REF(unique_lock) other)
 
 unique_lock (BOOST_THREAD_RV_REF_BEG upgrade_lock< mutex_type > BOOST_THREAD_RV_REF_END ul, try_to_lock_t)
 
void swap (unique_lock &other) BOOST_NOEXCEPT
 
 ~unique_lock ()
 
void lock ()
 
bool try_lock ()
 
void unlock ()
 
 operator bool () const BOOST_NOEXCEPT
 
bool owns_lock () const BOOST_NOEXCEPT
 
Mutex * mutex () const BOOST_NOEXCEPT
 
Mutex * release () BOOST_NOEXCEPT
 

Friends

class shared_lock< Mutex >
 
class upgrade_lock< Mutex >
 

Member Typedef Documentation

template<typename Mutex>
typedef Mutex boost::unique_lock< Mutex >::mutex_type

Constructor & Destructor Documentation

template<typename Mutex>
boost::unique_lock< Mutex >::unique_lock ( )
inline
template<typename Mutex>
boost::unique_lock< Mutex >::unique_lock ( Mutex &  m_)
inlineexplicit
template<typename Mutex>
boost::unique_lock< Mutex >::unique_lock ( Mutex &  m_,
adopt_lock_t   
)
inline
template<typename Mutex>
boost::unique_lock< Mutex >::unique_lock ( Mutex &  m_,
defer_lock_t   
)
inline
template<typename Mutex>
boost::unique_lock< Mutex >::unique_lock ( Mutex &  m_,
try_to_lock_t   
)
inline
template<typename Mutex>
boost::unique_lock< Mutex >::unique_lock ( BOOST_THREAD_RV_REF(unique_lock< Mutex >)  other)
inline
template<typename Mutex>
BOOST_THREAD_EXPLICIT_LOCK_CONVERSION boost::unique_lock< Mutex >::unique_lock ( BOOST_THREAD_RV_REF_BEG upgrade_lock< Mutex > BOOST_THREAD_RV_REF_END  other)
template<typename Mutex>
boost::unique_lock< Mutex >::unique_lock ( BOOST_THREAD_RV_REF_BEG upgrade_lock< mutex_type > BOOST_THREAD_RV_REF_END  ul,
try_to_lock_t   
)
inline
template<typename Mutex>
boost::unique_lock< Mutex >::~unique_lock ( )
inline

Member Function Documentation

template<typename Mutex>
boost::unique_lock< Mutex >::operator bool ( ) const
inlineexplicit
template<typename Mutex>
unique_lock& boost::unique_lock< Mutex >::operator= ( BOOST_THREAD_RV_REF_BEG upgrade_lock< Mutex > BOOST_THREAD_RV_REF_END  other)
inline
template<typename Mutex>
unique_lock& boost::unique_lock< Mutex >::operator= ( BOOST_THREAD_RV_REF(unique_lock< Mutex >)  other)
inline
template<typename Mutex>
bool boost::unique_lock< Mutex >::try_lock ( void  )
inline

Friends And Related Function Documentation

template<typename Mutex>
friend class shared_lock< Mutex >
friend
template<typename Mutex>
friend class upgrade_lock< Mutex >
friend

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