CatapultServer
v0.5.0.1 (Elephant)
|
utils::SpinReaderWriterLock::WriterLockGuard m_writeLock
Definition: CacheHeight.h:66
CacheHeightModifier(Height &height, utils::SpinReaderWriterLock::ReaderLockGuard &&readLock)
Creates a write only view around height with lock context readLock.
Definition: CacheHeight.h:51
A write only view on top of a cache height.
Definition: CacheHeight.h:48
Height m_height
Definition: CacheHeight.h:43
utils::SpinReaderWriterLock::ReaderLockGuard m_readLock
Definition: CacheHeight.h:44
Height m_height
Definition: CacheHeight.h:85
ReaderLockGuard acquireReader()
Blocks until a reader lock can be acquired.
Definition: SpinReaderWriterLock.h:153
A writer lock guard.
Definition: SpinReaderWriterLock.h:83
Height & m_height
Definition: CacheHeight.h:64
void set(Height height)
Sets the cache height to height.
Definition: CacheHeight.h:59
CacheHeightView(Height height, utils::SpinReaderWriterLock::ReaderLockGuard &&readLock)
Creates a cache height view around height with lock context readLock.
Definition: CacheHeight.h:31
A class that can be moved but not copied.
Definition: NonCopyable.h:43
A reader lock guard.
Definition: SpinReaderWriterLock.h:99
CacheHeightModifier modifier()
Gets a write only view of the height.
Definition: CacheHeight.h:79
Definition: AddressExtractionExtension.cpp:28
Height get() const
Returns the height.
Definition: CacheHeight.h:38
A read only view on top of a cache height.
Definition: CacheHeight.h:28
A synchronized height associated with a catapult cache.
Definition: CacheHeight.h:70
utils::SpinReaderWriterLock m_lock
Definition: CacheHeight.h:86
utils::SpinReaderWriterLock::ReaderLockGuard m_readLock
Definition: CacheHeight.h:65
Definition: SpinReaderWriterLock.h:36
CacheHeightView view() const
Gets a read only view of the height.
Definition: CacheHeight.h:73