| Parameter | Description |
|---|---|
| value | The value to add to this counter. |
| max | The maximum which the result will not be greater than. |
int The original value before the add.
Atomically adds a value to this counter. The result will not be greater than a maximum value.