Method AddSat
AddSat(int, int)
Atomically adds a value to this counter. The result will not be greater than a maximum value.
Declaration
public int AddSat(int value, int max = 2147483647)
Parameters
Type | Name | Description |
---|---|---|
int | value | The value to add to this counter. |
int | max | The maximum which the result will not be greater than. |
Returns
Type | Description |
---|---|
int | The original value before the add. |