Method | Description | |
---|---|---|
AtomicInteger ( int initialValue ) : System |
Initializes a new instance of the AtomicInteger class with the given value.
|
|
CompareExchange ( int comparand, int newValue ) : int |
Assigns a new value to the AtomicInteger if the current value is equal to a specified one, and returns the original value. See Interlocked.CompareExchange(ref int,int,int) for details. |
|
Decrement ( ) : int |
Decrements the value of this AtomicInteger by one and returns the new value.
|
|
ExchangeWith ( int newValue ) : int |
Exchanges the value of this AtomicInteger by with newValue and returns the original value.
|
|
Increment ( ) : int |
Increments the value of this AtomicInteger by one and returns the new value.
|
|
ToInt32 ( ) : int |
Extracts a Int32 from an AtomicInteger instance.
|
|
ToInt32 ( |
Extracts a Int32 from an instance of AtomicInteger.
|
public AtomicInteger ( int initialValue ) : System | ||
initialValue | int | The initial value. |
return | System |
public CompareExchange ( int comparand, int newValue ) : int | ||
comparand | int | The value to compare for equality with. |
newValue | int | The value to assign if the |
return | int |
public ExchangeWith ( int newValue ) : int | ||
newValue | int | The new value. |
return | int |
public static ToInt32 ( |
||
atomicInteger | The |
|
return | int |