unique lock providing a pointer access to the synchronized value type. More...
#include <synchronized_value.hpp>


Public Types | |
| typedef T | value_type |
| typedef Lockable | mutex_type |
Public Member Functions | |
| unique_lock_ptr (T &val, Lockable &mtx) | |
| unique_lock_ptr (T &value, Lockable &mtx, adopt_lock_t) BOOST_NOEXCEPT | |
| unique_lock_ptr (T &value, Lockable &mtx, defer_lock_t) BOOST_NOEXCEPT | |
| unique_lock_ptr (T &value, Lockable &mtx, try_to_lock_t) BOOST_NOEXCEPT | |
| unique_lock_ptr (BOOST_THREAD_RV_REF(unique_lock_ptr) other) BOOST_NOEXCEPT | |
| Move constructor. More... | |
| ~unique_lock_ptr () | |
| T * | operator-> () |
| T & | operator* () |
| const T * | operator-> () const |
| const T & | operator* () const |
| void | swap (unique_lock &other) BOOST_NOEXCEPT |
| void | lock () |
| bool | try_lock () |
| void | unlock () |
| operator bool () const BOOST_NOEXCEPT | |
| bool | owns_lock () const BOOST_NOEXCEPT |
| Lockable * | mutex () const BOOST_NOEXCEPT |
| Lockable * | release () BOOST_NOEXCEPT |
Protected Attributes | |
| T const & | value_ |
unique lock providing a pointer access to the synchronized value type.
| T | the value type. |
| Lockable | the mutex type protecting the value type. |
| typedef Lockable boost::unique_lock_ptr< T, Lockable >::mutex_type |
| typedef T boost::unique_lock_ptr< T, Lockable >::value_type |
|
inline |
| value | reference of the value to protect. |
| mtx | reference to the mutex used to protect the value. locks the mutex mtx, stores a reference to it and to the value type value. |
|
inline |
| value | reference of the value to protect. |
| mtx | reference to the mutex used to protect the value. |
| tag | of type adopt_lock_t used to differentiate the constructor. stores a reference to it and to the value type value taking ownership. |
|
inline |
| value | reference of the value to protect. |
| mtx | reference to the mutex used to protect the value. |
| tag | of type defer_lock_t used to differentiate the constructor. stores a reference to it and to the value type value c. |
|
inline |
| value | reference of the value to protect. |
| mtx | reference to the mutex used to protect the value. |
| tag | of type try_to_lock_t used to differentiate the constructor. try to lock the mutex mtx, stores a reference to it and to the value type value. |
|
inline |
Move constructor.
takes ownership of the mutex owned by other, stores a reference to the mutex and the value type of other.
|
inline |
|
inlineinherited |
|
inlineinherited |
|
inlineexplicitinherited |
References boost::unique_lock< Mutex >::owns_lock().
|
inlineinherited |
References BOOST_ASSERT, boost::unique_lock< Lockable >::owns_lock(), and boost::const_unique_lock_ptr< T, Lockable >::value_.
|
inline |
References BOOST_ASSERT, boost::unique_lock< Lockable >::owns_lock(), T, and boost::const_unique_lock_ptr< T, Lockable >::value_.
|
inlineinherited |
References BOOST_ASSERT, boost::unique_lock< Lockable >::owns_lock(), and boost::const_unique_lock_ptr< T, Lockable >::value_.
|
inline |
References BOOST_ASSERT, boost::unique_lock< Lockable >::owns_lock(), T, and boost::const_unique_lock_ptr< T, Lockable >::value_.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
References boost::spirit::x3::unicode::other, and boost::swap().
|
inlineinherited |
|
inlineinherited |
|
protectedinherited |