33 #ifndef _IDENTT_UTILS_SHARED_OBJECT_HPP_ 34 #define _IDENTT_UTILS_SHARED_OBJECT_HPP_ 37 #include <boost/thread/locks.hpp> 38 #include <boost/thread/shared_mutex.hpp> 45 using LockT = boost::shared_mutex;
46 using WriteLockT = boost::unique_lock< LockT >;
47 using ReadLockT = boost::shared_lock< LockT >;
82 WriteLockT writelock(mutex_);
94 ReadLockT readlock(mutex_);
T Get()
Get : get.
Definition: SharedObject.hpp:92
virtual ~SharedObject()
destructor
Definition: SharedObject.hpp:69
void Set(T t)
Set : set.
Definition: SharedObject.hpp:80
Definition: SharedObject.hpp:43
SharedObject()
Constructor : default.
Definition: SharedObject.hpp:63
Definition: CryptoBase.hpp:49