#include <StorageAccount.h>
|
static void | addTo (std::atomic< double > &iAtomic, double iToAdd) |
|
Definition at line 39 of file StorageAccount.h.
◆ Counter() [1/2]
StorageAccount::Counter::Counter |
( |
| ) |
|
|
inline |
◆ Counter() [2/2]
StorageAccount::Counter::Counter |
( |
Counter const & |
iOther | ) |
|
|
inline |
◆ addTo()
static void StorageAccount::Counter::addTo |
( |
std::atomic< double > & |
iAtomic, |
|
|
double |
iToAdd |
|
) |
| |
|
inlinestatic |
Definition at line 84 of file StorageAccount.h.
85 double oldValue = iAtomic.load();
86 double newValue = oldValue + iToAdd;
87 while (not iAtomic.compare_exchange_weak(oldValue, newValue)) {
88 newValue = oldValue + iToAdd;
Referenced by StorageAccount::Stamp::tick().
◆ amount
std::atomic<uint64_t> StorageAccount::Counter::amount |
◆ amount_square
std::atomic<double> StorageAccount::Counter::amount_square |
◆ attempts
std::atomic<uint64_t> StorageAccount::Counter::attempts |
◆ successes
std::atomic<uint64_t> StorageAccount::Counter::successes |
◆ timeMax
std::atomic<double> StorageAccount::Counter::timeMax |
◆ timeMin
std::atomic<double> StorageAccount::Counter::timeMin |
◆ timeTotal
std::atomic<double> StorageAccount::Counter::timeTotal |
◆ vector_count
std::atomic<int64_t> StorageAccount::Counter::vector_count |
◆ vector_square
std::atomic<int64_t> StorageAccount::Counter::vector_square |