Atomically adds mod to the value referenced by val and returns the value val held previously. This operation is both lock-free and atomic.
Reference to the value to modify.
The value to add.
The value held previously by val.
See Implementation
Atomically adds mod to the value referenced by val and returns the value val held previously. This operation is both lock-free and atomic.