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.
Inheritance
System.Object
ParallelCounter
Namespace: VeloxDB.Common
Assembly: vlxc.dll
Syntax
public sealed class ParallelCounter : Object
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 |
---|---|
System.Int64 |
Methods
Finalize()
Declaration
protected override void Finalize()
Inc()
Increases the count by one.
Declaration
public long Inc()
Returns
Type | Description |
---|---|
System.Int64 | The incremented value. |