userver: userver/concurrent/striped_counter.hpp File Reference
Loading...
Searching...
No Matches
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>
+ 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.