Atomically subtracts mod from 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 subtract.
The value held previously by val.
See Implementation
Atomically subtracts mod from the value referenced by val and returns the value val held previously. This operation is both lock-free and atomic.