C# 클래스 Ariadne.SharedInt32

A simple means to share an atomically-maintained count between objects.
파일 보기 프로젝트 열기: JonHanna/Ariadne

공개 메소드들

메소드 설명
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.

메소드 상세

Add() 공개 메소드

Atomically add a value to the Ariadne.SharedInt32.
public Add ( int addend ) : int
addend int The number to add to the .
리턴 int

Decrement() 공개 메소드

Atomically decrement the value of the Ariadne.SharedInt32 by one.
public Decrement ( ) : int
리턴 int

Exchange() 공개 메소드

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.
리턴 int

Increment() 공개 메소드

Atomically increment the value of the Ariadne.SharedInt32 by one.
public Increment ( ) : int
리턴 int

SharedInt32() 공개 메소드

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

SharedInt32() 공개 메소드

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 .
리턴 System.Threading

Subtract() 공개 메소드

Atomically subtract a value from the Ariadne.SharedInt32.
public Subtract ( int subtrahend ) : int
subtrahend int The number to subtract from the .
리턴 int