20 #include <ripple/basics/CountedObject.h>
50 while (counter !=
nullptr)
52 if (counter->
getCount() >= minimumThreshold)
79 head = instance.
m_head.load();
81 }
while (instance.
m_head.exchange(
this) != head);
std::atomic< int > m_count
CounterBase * getNext() const noexcept
CountedObjects() noexcept
static CountedObjects & getInstance() noexcept
int getCount() const noexcept
virtual ~CounterBase() noexcept
Manages all counted object types.
Implementation for CountedObject.
virtual char const * getName() const =0
std::atomic< CounterBase * > m_head
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
List getCounts(int minimumThreshold) const