C# Class NBench.Util.AtomicCounter

Atomic counter class used for incrementing and decrementing long integer values.
Show file Open project: petabridge/NBench Class Usage Examples

Protected Properties

Property Type Description
Value long

Public Methods

Method Description
AtomicCounter ( long seed ) : System.Threading
Decrement ( ) : void
GetAndIncrement ( ) : long
Increment ( ) : void

Method Details

AtomicCounter() public method

public AtomicCounter ( long seed ) : System.Threading
seed long
return System.Threading

Decrement() public method

public Decrement ( ) : void
return void

GetAndIncrement() public method

public GetAndIncrement ( ) : long
return long

Increment() public method

public Increment ( ) : void
return void

Property Details

Value protected property

protected long Value
return long