33 #ifndef _IDENTT_UTILS_SHAREDTABLE_HPP_ 34 #define _IDENTT_UTILS_SHAREDTABLE_HPP_ 49 #define IDENTT_CURRTIME_MS std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now().time_since_epoch()).count() 53 class SharedTable :
public std::enable_shared_from_this<SharedTable> {
55 using pointer=std::shared_ptr<SharedTable>;
56 using dbpointer=identt::store::StoreLevel::dbpointer;
57 using LockT = boost::shared_mutex;
58 using WriteLockT = boost::unique_lock< LockT >;
59 using ReadLockT = boost::shared_lock< LockT >;
69 using KeyRingT = std::unordered_map<std::string,std::shared_ptr<identt::crypto::CryptoBase> >;
71 using SharedCache = identt::store::StoreCache::pointer;
135 return shared_from_this();
static pointer create()
create : static construction creates new first time
Definition: StoreCache.hpp:65
static pointer create()
create : static construction creates new first time
Definition: SharedTable.hpp:121
KeyRingT keyring
public stable to be used directly , never updated after init by code
Definition: SharedTable.hpp:76
Definition: SharedCounter.hpp:40
Definition: CryptoBase.hpp:49
pointer share()
share : return instance
Definition: SharedTable.hpp:133
Definition: SharedTable.hpp:53
virtual ~SharedTable()
destructor
Definition: SharedTable.hpp:141