C# Class Sharpen.AtomicInteger

Datei anzeigen Open project: nonorganic/dssnet Class Usage Examples

Public Methods

Method Description
AddAndGet ( int addval ) : int
AtomicInteger ( ) : System
AtomicInteger ( int val ) : System
CompareAndSet ( int expect, int update ) : bool
DecrementAndGet ( ) : int
Get ( ) : int
GetAndAdd ( int addval ) : int
GetAndSet ( int newValue ) : int
IncrementAndGet ( ) : int

Method Details

AddAndGet() public method

public AddAndGet ( int addval ) : int
addval int
return int

AtomicInteger() public method

public AtomicInteger ( ) : System
return System

AtomicInteger() public method

public AtomicInteger ( int val ) : System
val int
return System

CompareAndSet() public method

public CompareAndSet ( int expect, int update ) : bool
expect int
update int
return bool

DecrementAndGet() public method

public DecrementAndGet ( ) : int
return int

Get() public method

public Get ( ) : int
return int

GetAndAdd() public method

public GetAndAdd ( int addval ) : int
addval int
return int

GetAndSet() public method

public GetAndSet ( int newValue ) : int
newValue int
return int

IncrementAndGet() public method

public IncrementAndGet ( ) : int
return int