#include <userver/utils/statistics/relaxed_counter.hpp>
Atomic counter of type T with relaxed memory ordering.
Serialized as a GAUGE metric. For a monotonic RATE metric, use utils::statistics::RateCounter instead.
Definition at line 19 of file relaxed_counter.hpp.
Public Types | |
| using | ValueType = T |
Public Member Functions | |
| constexpr | RelaxedCounter (T desired) noexcept |
| RelaxedCounter (const RelaxedCounter &other) noexcept | |
| RelaxedCounter & | operator= (const RelaxedCounter &other) noexcept |
| RelaxedCounter & | operator= (T desired) noexcept |
| void | Store (T desired) noexcept |
| T | Load () const noexcept |
| operator T () const noexcept | |
| RelaxedCounter & | operator++ () noexcept |
| T | operator++ (int) noexcept |
| RelaxedCounter & | operator-- () noexcept |
| T | operator-- (int) noexcept |
| RelaxedCounter & | operator+= (T arg) noexcept |
| RelaxedCounter & | operator-= (T arg) noexcept |
| using utils::statistics::RelaxedCounter< T >::ValueType = T |
Definition at line 21 of file relaxed_counter.hpp.
|
inlineconstexprnoexcept |
Definition at line 24 of file relaxed_counter.hpp.
|
inlinenoexcept |
Definition at line 26 of file relaxed_counter.hpp.
|
inlinenoexcept |
Definition at line 44 of file relaxed_counter.hpp.
|
inlinenoexcept |
Definition at line 46 of file relaxed_counter.hpp.
|
inlinenoexcept |
Definition at line 48 of file relaxed_counter.hpp.
|
inlinenoexcept |
Definition at line 53 of file relaxed_counter.hpp.
|
inlinenoexcept |
Definition at line 62 of file relaxed_counter.hpp.
|
inlinenoexcept |
Definition at line 55 of file relaxed_counter.hpp.
|
inlinenoexcept |
Definition at line 60 of file relaxed_counter.hpp.
|
inlinenoexcept |
Definition at line 67 of file relaxed_counter.hpp.
|
inlinenoexcept |
Definition at line 28 of file relaxed_counter.hpp.
|
inlinenoexcept |
Definition at line 37 of file relaxed_counter.hpp.
|
inlinenoexcept |
Definition at line 42 of file relaxed_counter.hpp.