C# Class Helios.Util.AtomicCounter

Class used for atomic counters and increments. Used inside the FSM{TS,TD} and in parts of Akka.Remote.
Mostrar archivo Open project: helios-io/helios Class Usage Examples

Public Methods

Method Description
AtomicCounter ( int seed ) : System.Threading
GetAndIncrement ( ) : int

Returns the current value while simultaneously incrementing the counter

Method Details

AtomicCounter() public method

public AtomicCounter ( int seed ) : System.Threading
seed int
return System.Threading

GetAndIncrement() public method

Returns the current value while simultaneously incrementing the counter
public GetAndIncrement ( ) : int
return int