Description[base] Add Decrement and assignment operators to AtomicNumber
AtomicNumber should make dealing with atomic counters easier. This is not the
case with size_t, as we cannot properly use the Increment() method for negative
numbers.
With this CL we can use AtomicNumber<size_t> and have proper decrements.
R=jochen@chromium.org
Committed: https://crrev.com/5e685567ea58d94b033ec67e02bdafa6e45d4544
Cr-Commit-Position: refs/heads/master@{#38407}
Patch Set 1 #
Messages
Total messages: 13 (8 generated)
|