C# Class Ariadne.SharedInt32

A simple means to share an atomically-maintained count between objects.
Afficher le fichier Open project: JonHanna/Ariadne

Méthodes publiques

Méthode Description
Add ( int addend ) : int

Atomically add a value to the Ariadne.SharedInt32.

Decrement ( ) : int

Atomically decrement the value of the Ariadne.SharedInt32 by one.

Exchange ( int value ) : int

Atomically replace the value of the Ariadne.SharedInt32, returning the previous value.

Increment ( ) : int

Atomically increment the value of the Ariadne.SharedInt32 by one.

SharedInt32 ( ) : System.Threading

Initialises a new instance of the Ariadne.SharedInt32 class, with a value of zero.

SharedInt32 ( int value ) : System.Threading

Initialises a new instance of the Ariadne.SharedInt32 class, with an initial value.

Subtract ( int subtrahend ) : int

Atomically subtract a value from the Ariadne.SharedInt32.

Method Details

Add() public méthode

Atomically add a value to the Ariadne.SharedInt32.
public Add ( int addend ) : int
addend int The number to add to the .
Résultat int

Decrement() public méthode

Atomically decrement the value of the Ariadne.SharedInt32 by one.
public Decrement ( ) : int
Résultat int

Exchange() public méthode

Atomically replace the value of the Ariadne.SharedInt32, returning the previous value.
public Exchange ( int value ) : int
value int The number to set the to.
Résultat int

Increment() public méthode

Atomically increment the value of the Ariadne.SharedInt32 by one.
public Increment ( ) : int
Résultat int

SharedInt32() public méthode

Initialises a new instance of the Ariadne.SharedInt32 class, with a value of zero.
public SharedInt32 ( ) : System.Threading
Résultat System.Threading

SharedInt32() public méthode

Initialises a new instance of the Ariadne.SharedInt32 class, with an initial value.
public SharedInt32 ( int value ) : System.Threading
value int The initial value of the .
Résultat System.Threading

Subtract() public méthode

Atomically subtract a value from the Ariadne.SharedInt32.
public Subtract ( int subtrahend ) : int
subtrahend int The number to subtract from the .
Résultat int