Atomically increments or decrements the current value. The operation is read-modify-write operation.
operator ++ performs atomic post-increment. Equivalent to return fetchAdd(1);. operator -- performs atomic post-decrement. Equivalent to return fetchSub(1);.
The atomic value BEFORE the operation
See Implementation
Atomically increments or decrements the current value. The operation is read-modify-write operation.
operator ++ performs atomic post-increment. Equivalent to return fetchAdd(1);. operator -- performs atomic post-decrement. Equivalent to return fetchSub(1);.