|
#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 59 of file SegmentUtilImplementations.h.
using ScopedSharedLock = std::unique_lock<std::shared_mutex> |
Definition at line 65 of file SegmentUtilImplementations.h.
using ScopedSharedLockPtr = std::unique_ptr<ScopedSharedLock> |
Definition at line 66 of file SegmentUtilImplementations.h.
using ScopedUniqueLock = std::unique_lock<std::shared_mutex> |
Definition at line 67 of file SegmentUtilImplementations.h.
using ScopedUniqueLockPtr = std::unique_ptr<ScopedSharedLock> |
Definition at line 68 of file SegmentUtilImplementations.h.
Definition at line 40 of file SegmentUtilImplementations.cpp.
|
override |
Definition at line 82 of file SegmentUtilImplementations.cpp.
|
override |
Definition at line 140 of file SegmentUtilImplementations.cpp.
|
override |
Definition at line 69 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 57 of file SegmentUtilImplementations.cpp.
|
protected |
Definition at line 246 of file SegmentUtilImplementations.cpp.
|
override |
Definition at line 188 of file SegmentUtilImplementations.cpp.
|
override |
Definition at line 156 of file SegmentUtilImplementations.cpp.
|
override |
Definition at line 209 of file SegmentUtilImplementations.cpp.
|
override |
Definition at line 227 of file SegmentUtilImplementations.cpp.
|
protected |
Definition at line 101 of file SegmentUtilImplementations.h.
|
protected |
Definition at line 98 of file SegmentUtilImplementations.h.
|
protected |
Definition at line 97 of file SegmentUtilImplementations.h.
|
protected |
Definition at line 100 of file SegmentUtilImplementations.h.
|
mutableprotected |
Definition at line 91 of file SegmentUtilImplementations.h.
|
protected |
Definition at line 94 of file SegmentUtilImplementations.h.
|
mutableprotected |
Definition at line 96 of file SegmentUtilImplementations.h.
|
protected |
Definition at line 93 of file SegmentUtilImplementations.h.
|
mutableprotected |
Definition at line 99 of file SegmentUtilImplementations.h.
|
protected |
Definition at line 95 of file SegmentUtilImplementations.h.