CatapultServer
v0.5.0.1 (Elephant)
|
model::ChainScore m_score
Definition: LocalNodeChainScore.h:62
WriterLockGuard promoteToWriter()
Definition: SpinReaderWriterLock.h:117
LocalNodeChainScore & operator+=(const model::ChainScore &rhs)
Adds rhs to this chain score.
Definition: LocalNodeChainScore.h:54
utils::SpinReaderWriterLock m_lock
Definition: LocalNodeChainScore.h:63
Definition: ChainScore.h:30
ReaderLockGuard acquireReader()
Blocks until a reader lock can be acquired.
Definition: SpinReaderWriterLock.h:153
LocalNodeChainScore()=default
Creates a default local node chain score.
LocalNodeChainScore(const model::ChainScore &score)
Creates a local node chain score around score.
Definition: LocalNodeChainScore.h:35
model::ChainScore get() const
Gets the current chain score.
Definition: LocalNodeChainScore.h:40
Definition: LocalNodeChainScore.h:29
void set(const model::ChainScore &chainScore)
Sets the current chain score to chainScore.
Definition: LocalNodeChainScore.h:46
Definition: AddressExtractionExtension.cpp:28
Definition: SpinReaderWriterLock.h:36