AtomicInt Type
Thread-safe atomic counter using Interlocked. Zero-allocation reads.
Instance members
| Instance member |
Description
|
Full Usage:
this.Add
Parameters:
int
Returns: int
|
Adds delta and returns the new value. The value to add to the counter.
|
Full Usage:
this.CompareExchange
Parameters:
int
comparand : int
Returns: bool
|
Sets to newValue if current equals comparand. Returns true if exchanged. The value to set if the current value matches the comparand. The value to compare against.
|
Full Usage:
this.Decrement
Returns: int
|
Decrements and returns the new value.
|
Full Usage:
this.Exchange
Parameters:
int
Returns: int
|
Sets to newValue, returns the old value. The value to set.
|
Full Usage:
this.Increment
Returns: int
|
Increments and returns the new value.
|
Full Usage:
this.Reset
Returns: int
|
Resets to 0 and returns previous value.
|
Full Usage:
this.Value
Returns: int
|
Gets the current value.
|
TDesu.FSharp