|
#include <MemoryX/core/memory/SegmentUtilImplementations.h>
Public Types | |
using | ScopedSharedLock = std::unique_lock< std::shared_mutex > |
using | ScopedSharedLockPtr = std::unique_ptr< ScopedSharedLock > |
using | ScopedUniqueLock = std::unique_lock< std::shared_mutex > |
using | ScopedUniqueLockPtr = std::unique_ptr< ScopedSharedLock > |
Public Member Functions | |
EntityBaseList | getEntityWithChildrenById (const std::string &id, bool includeMetaEntities, const Ice::Current &c=Ice::emptyCurrent) const override |
EntityBaseList | getEntityWithChildrenByName (const std::string &, bool includeMetaEntities, const Ice::Current &c=Ice::emptyCurrent) const override |
std::string | getJSONEntityById (const std::string &id, const Ice::Current &) const override |
ScopedSharedLockPtr | getReadLock (const Ice::Current &c) const |
ScopedUniqueLockPtr | getWriteLock (const Ice::Current &c) const |
bool | keepLockAlive (const std::string &token, const Ice::Current &) override |
SegmentLockBasePtr | lockSegment (const Ice::Current &c) override |
SegmentUtilImplementations () | |
bool | unlockSegment (const SegmentLockBasePtr &lock, const Ice::Current &c) override |
bool | unlockSegmentWithToken (const std::string &token, const Ice::Current &c) override |
Protected Member Functions | |
void | keepAliveCheck () |
Protected Attributes | |
armarx::PeriodicTask< SegmentUtilImplementations >::pointer_type | keepAliveCheckTask |
IceUtil::Time | keepAliveTimestamp |
std::mutex | keepAliveTimestampMutex |
std::string | lockToken |
std::mutex | mutex |
ScopedSharedLockPtr | readLock |
std::shared_mutex | segmentMutex |
EntityMemorySegmentInterfacePrx | selfProxy |
std::mutex | tokenMutex |
ScopedUniqueLockPtr | writeLock |
Definition at line 54 of file SegmentUtilImplementations.h.
using ScopedSharedLock = std::unique_lock<std::shared_mutex> |
Definition at line 61 of file SegmentUtilImplementations.h.
using ScopedSharedLockPtr = std::unique_ptr<ScopedSharedLock> |
Definition at line 62 of file SegmentUtilImplementations.h.
using ScopedUniqueLock = std::unique_lock<std::shared_mutex> |
Definition at line 63 of file SegmentUtilImplementations.h.
using ScopedUniqueLockPtr = std::unique_ptr<ScopedSharedLock> |
Definition at line 64 of file SegmentUtilImplementations.h.
Definition at line 41 of file SegmentUtilImplementations.cpp.
|
override |
Definition at line 79 of file SegmentUtilImplementations.cpp.
|
override |
Definition at line 136 of file SegmentUtilImplementations.cpp.
|
override |
Definition at line 67 of file SegmentUtilImplementations.cpp.
auto getReadLock | ( | const Ice::Current & | c | ) | const |
Definition at line 45 of file SegmentUtilImplementations.cpp.
auto getWriteLock | ( | const Ice::Current & | c | ) | const |
Definition at line 56 of file SegmentUtilImplementations.cpp.
|
protected |
Definition at line 229 of file SegmentUtilImplementations.cpp.
|
override |
Definition at line 173 of file SegmentUtilImplementations.cpp.
|
override |
Definition at line 149 of file SegmentUtilImplementations.cpp.
|
override |
Definition at line 193 of file SegmentUtilImplementations.cpp.
|
override |
Definition at line 212 of file SegmentUtilImplementations.cpp.
|
protected |
Definition at line 91 of file SegmentUtilImplementations.h.
|
protected |
Definition at line 88 of file SegmentUtilImplementations.h.
|
protected |
Definition at line 87 of file SegmentUtilImplementations.h.
|
protected |
Definition at line 90 of file SegmentUtilImplementations.h.
|
mutableprotected |
Definition at line 81 of file SegmentUtilImplementations.h.
|
protected |
Definition at line 84 of file SegmentUtilImplementations.h.
|
mutableprotected |
Definition at line 86 of file SegmentUtilImplementations.h.
|
protected |
Definition at line 83 of file SegmentUtilImplementations.h.
|
mutableprotected |
Definition at line 89 of file SegmentUtilImplementations.h.
|
protected |
Definition at line 85 of file SegmentUtilImplementations.h.