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