userver: userver/utils/statistics/relaxed_counter.hpp File Reference
Loading...
Searching...
No Matches
relaxed_counter.hpp File Reference

Detailed Description

Atomic counter of type T with relaxed memory ordering.

Definition in file relaxed_counter.hpp.

Go to the source code of this file.

#include <atomic>
#include <userver/utils/statistics/fwd.hpp>
+ This graph shows which files directly or indirectly include this file:

Classes

class  utils::statistics::RelaxedCounter< T >
 Atomic counter of type T with relaxed memory ordering. More...
 

Namespaces

namespace  utils
 General-purpose utilities used across userver libraries.
 
namespace  utils::statistics
 Statistics writers, metric types, and histogram helpers.
 

Functions

template<typename T>
void utils::statistics::DumpMetric (Writer &writer, const RelaxedCounter< T > &value)
 
template<typename T>
void utils::statistics::ResetMetric (RelaxedCounter< T > &value)