C# Class Corlib.Threading.AtomicUInt64

Afficher le fichier Open project: GeorgeTsiokos/corlib Class Usage Examples

Méthodes publiques

Méthode Description
CompareExchange ( ulong value, ulong comparand ) : ulong

Compares the type's value with comparand for equality, and if they're equal, replaces the value with value

Create ( ) : AtomicUInt64

Creates a new value starting at 0

Decrement ( ) : void

Decrements the value

DecrementAndReturn ( ) : ulong

Decrements the value

Exchange ( ulong value ) : ulong

Sets a specified value and returns the original value, as an atomic operation

Increment ( ) : void

Increments the value

IncrementAndReturn ( ) : ulong

Increments the value

SetAndReturn ( ulong value ) : ulong

Sets the value

Private Methods

Méthode Description
Calculate ( ulong value ) : long
Calculate ( long value ) : ulong
Get ( ) : long
Set ( long value ) : long

Method Details

CompareExchange() public méthode

Compares the type's value with comparand for equality, and if they're equal, replaces the value with value
public CompareExchange ( ulong value, ulong comparand ) : ulong
value ulong the replacement value
comparand ulong the value to compare against
Résultat ulong

Create() public static méthode

Creates a new value starting at 0
public static Create ( ) : AtomicUInt64
Résultat AtomicUInt64

Decrement() public méthode

Decrements the value
public Decrement ( ) : void
Résultat void

DecrementAndReturn() public méthode

Decrements the value
public DecrementAndReturn ( ) : ulong
Résultat ulong

Exchange() public méthode

Sets a specified value and returns the original value, as an atomic operation
public Exchange ( ulong value ) : ulong
value ulong new value
Résultat ulong

Increment() public méthode

Increments the value
public Increment ( ) : void
Résultat void

IncrementAndReturn() public méthode

Increments the value
public IncrementAndReturn ( ) : ulong
Résultat ulong

SetAndReturn() public méthode

Sets the value
public SetAndReturn ( ulong value ) : ulong
value ulong the new value
Résultat ulong