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