#include <StorageAccount.h>
|
static void | addTo (std::atomic< double > &iAtomic, double iToAdd) |
|
Definition at line 40 of file StorageAccount.h.
StorageAccount::Counter::Counter |
( |
| ) |
|
|
inline |
Definition at line 41 of file StorageAccount.h.
std::atomic< double > timeMax
std::atomic< uint64_t > attempts
std::atomic< int64_t > vector_square
std::atomic< int64_t > vector_count
std::atomic< double > timeMin
std::atomic< uint64_t > successes
std::atomic< double > amount_square
std::atomic< uint64_t > amount
std::atomic< double > timeTotal
StorageAccount::Counter::Counter |
( |
Counter && |
| ) |
|
|
default |
StorageAccount::Counter::Counter |
( |
Counter const & |
iOther | ) |
|
|
inline |
Definition at line 58 of file StorageAccount.h.
References attempts.
61 amount{iOther.amount.load()},
67 timeMax{iOther.timeMax.load()} {}
std::atomic< double > timeMax
std::atomic< uint64_t > attempts
std::atomic< int64_t > vector_square
std::atomic< int64_t > vector_count
std::atomic< double > timeMin
std::atomic< uint64_t > successes
std::atomic< double > amount_square
std::atomic< uint64_t > amount
std::atomic< double > timeTotal
static void StorageAccount::Counter::addTo |
( |
std::atomic< double > & |
iAtomic, |
|
|
double |
iToAdd |
|
) |
| |
|
inlinestatic |
Definition at line 87 of file StorageAccount.h.
Referenced by StorageAccount::Stamp::tick().
88 double oldValue = iAtomic.load();
89 double newValue = oldValue + iToAdd;
90 while( not iAtomic.compare_exchange_weak(oldValue, newValue)) {
91 newValue = oldValue+iToAdd;
std::atomic<uint64_t> StorageAccount::Counter::amount |
std::atomic<double> StorageAccount::Counter::amount_square |
std::atomic<uint64_t> StorageAccount::Counter::attempts |
std::atomic<uint64_t> StorageAccount::Counter::successes |
std::atomic<double> StorageAccount::Counter::timeMax |
std::atomic<double> StorageAccount::Counter::timeMin |
std::atomic<double> StorageAccount::Counter::timeTotal |
std::atomic<int64_t> StorageAccount::Counter::vector_count |
std::atomic<int64_t> StorageAccount::Counter::vector_square |