userver: userver/concurrent/striped_counter.hpp File Reference
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
striped_counter.hpp File Reference

Detailed Description

A contention-free sharded atomic counter, with memory consumption and read performance traded for write performance. Intended to be used for write-heavy counters, mostly in metrics.

Definition in file striped_counter.hpp.

Go to the source code of this file.

#include <cstdint>
#include <userver/utils/fast_pimpl.hpp>
+ Include dependency graph for striped_counter.hpp:
+ This graph shows which files directly or indirectly include this file:

Classes

class  concurrent::StripedCounter
 A contention-free sharded atomic counter, with memory consumption and read performance traded for write performance. Intended to be used for write-heavy counters, mostly in metrics. More...
 

Namespaces

namespace  concurrent
 Locking stuff.