C# Class Helios.Util.AtomicCounter

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

Méthodes publiques

Méthode Description
AtomicCounter ( int seed ) : System.Threading
GetAndIncrement ( ) : int

Returns the current value while simultaneously incrementing the counter

Method Details

AtomicCounter() public méthode

public AtomicCounter ( int seed ) : System.Threading
seed int
Résultat System.Threading

GetAndIncrement() public méthode

Returns the current value while simultaneously incrementing the counter
public GetAndIncrement ( ) : int
Résultat int