ReadWriteLock.cc
Go to the documentation of this file.
196std::ostream &
Definition: ReadWriteLock.h:27
std::atomic< uint32_t > readLevel
number of users reading (or trying to)
Definition: ReadWriteLock.h:62
void switchExclusiveToShared()
Definition: ReadWriteLock.cc:100
bool lockHeaders()
lock for [readable] metadata update or return false
Definition: ReadWriteLock.cc:63
bool stopAppendingAndRestoreExclusive()
Definition: ReadWriteLock.cc:131
std::atomic< uint32_t > writeLevel
number of users writing (or trying to write)
Definition: ReadWriteLock.h:63
std::atomic< bool > writing
there is a writing user (there can be at most 1)
Definition: ReadWriteLock.h:55
bool unlockSharedAndSwitchToExclusive()
Definition: ReadWriteLock.cc:109
void updateStats(ReadWriteLockStats &stats) const
adds approximate current stats to the supplied ones
Definition: ReadWriteLock.cc:148
Definition: Store.h:42
std::ostream & operator<<(std::ostream &os, const QuestionerId &qid)
Definition: QuestionerId.h:63
class Ping::pingStats_ stats