RobustCounters

Namespace: SnowBank.Numerics · class

Distributed global counter made up of individual counters

Constructors

RobustCounters

RobustCounters(int count)

Constructs a new RobustCounters instance

Properties

Counters

RobustCounter[] Counters { get; }

Array of individual counters

Methods

GetTotal

long GetTotal()

Return the global tally of all individual counters

The value is only considered "stable" if all workers threads have stopped./ While the workers are running, the tally may not be accurate