#include <userver/utils/statistics/rate_counter.hpp>
Atomic counter of type Rate with relaxed memory ordering.
This class is represented as Rate metric when serializing to statistics. Otherwise it is the same class as RelaxedCounter
Definition at line 20 of file rate_counter.hpp.
Public Types | |
| using | ValueType = Rate |
Public Member Functions | |
| constexpr | RateCounter (Rate desired) noexcept |
| constexpr | RateCounter (Rate::ValueType desired) noexcept |
| RateCounter (const RateCounter &other) noexcept | |
| RateCounter & | operator= (const RateCounter &other) noexcept |
| RateCounter & | operator= (Rate desired) noexcept |
| void | Store (Rate desired, std::memory_order order=std::memory_order_relaxed) noexcept |
| Rate | Load () const noexcept |
| void | Add (Rate arg, std::memory_order order=std::memory_order_relaxed) noexcept |
| void | AddAsSingleProducer (Rate arg) noexcept |
| RateCounter & | operator++ () noexcept |
| Rate | operator++ (int) noexcept |
| RateCounter & | operator+= (Rate arg) noexcept |
| RateCounter & | operator+= (const RateCounter &arg) noexcept |
Definition at line 22 of file rate_counter.hpp.
|
inlineexplicitconstexprnoexcept |
Definition at line 26 of file rate_counter.hpp.
|
inlineexplicitconstexprnoexcept |
Definition at line 28 of file rate_counter.hpp.
|
inlinenoexcept |
Definition at line 30 of file rate_counter.hpp.
|
inlinenoexcept |
Definition at line 52 of file rate_counter.hpp.
Definition at line 56 of file rate_counter.hpp.
|
inlinenoexcept |
Definition at line 50 of file rate_counter.hpp.
|
inlinenoexcept |
Definition at line 60 of file rate_counter.hpp.
Definition at line 65 of file rate_counter.hpp.
|
inlinenoexcept |
Definition at line 72 of file rate_counter.hpp.
|
inlinenoexcept |
Definition at line 67 of file rate_counter.hpp.
|
inlinenoexcept |
Definition at line 32 of file rate_counter.hpp.
|
inlinenoexcept |
Definition at line 41 of file rate_counter.hpp.
|
inlinenoexcept |
Definition at line 46 of file rate_counter.hpp.