note
VeloxDB is still in beta and APIs are subject to change. We are in the process of completing the documentation, so some sections may be incomplete or empty at this time.
Class ParallelCounter
Helper class that can be used to keep track of the number of occurances of an event in a highly parallel manner. It avoids accessing same CPU cache lines by different CPU cores, for increased parallelism. Use this class for high performane benchamring.
Inherited Members
Namespace: VeloxDB.Common
Assembly: vlxc.dll
Syntax
public sealed class ParallelCounter
Constructors
ParallelCounter()
Creates a new instance of the ParallelCounter class.
Declaration
public ParallelCounter()
Properties
Count
The current count.
Declaration
public long Count { get; }
Property Value
Type | Description |
---|---|
long |
Methods
~ParallelCounter()
Declaration
protected ~ParallelCounter()
Inc()
Increases the count by one.
Declaration
public long Inc()
Returns
Type | Description |
---|---|
long | The incremented value. |