strict 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 | |
strict_lock_ptr (T &val, Lockable &mtx) | |
strict_lock_ptr (T &val, Lockable &mtx, adopt_lock_t tag) | |
strict_lock_ptr (BOOST_THREAD_RV_REF(strict_lock_ptr) other) | |
Move constructor. More... | |
~strict_lock_ptr () | |
T * | operator-> () |
T & | operator* () |
const T * | operator-> () const |
const T & | operator* () const |
Protected Attributes | |
boost::unique_lock< mutex_type > | lk_ |
T const & | value_ |
strict lock providing a pointer access to the synchronized value type.
T | the value type. |
Lockable | the mutex type protecting the value type. |
|
inherited |
|
inherited |
|
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 |
|
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 |
References boost::const_strict_lock_ptr< T, Lockable >::value_.
|
inline |
References T, and boost::const_strict_lock_ptr< T, Lockable >::value_.
|
inlineinherited |
References boost::const_strict_lock_ptr< T, Lockable >::value_.
|
inline |
References T, and boost::const_strict_lock_ptr< T, Lockable >::value_.
|
protectedinherited |
|
protectedinherited |