Atomic add with "barrier" memory-ordering semantic. Returns the new value.
| 90 | |
| 91 | /// Atomic add with "barrier" memory-ordering semantic. Returns the new value. |
| 92 | ALWAYS_INLINE T Add(T x) { |
| 93 | return base::subtle::Barrier_AtomicIncrement(&value_, x); |
| 94 | } |
| 95 | |
| 96 | /// Atomically compare 'old_val' to 'value_' and set 'value_' to 'new_val' and return |
| 97 | /// true if they compared equal, otherwise return false (and do no updates), with |