Lines Matching refs:vi
321 AtomicInt(int i) : vi(i) {} in AtomicInt()
323 inline operator int() const { return vi; } // Note: this isn't a guaranteed atomic operation in operator int()
324 inline void operator=(const AtomicInt& i) { atomicExchange(&vi, i.vi); } in operator =()
325 inline void operator=(int i) { atomicExchange(&vi, i); } in operator =()
326 inline void operator--() { atomicDecrement(&vi); } in operator --()
327 inline void operator++() { atomicIncrement(&vi); } in operator ++()
328 inline int operator--(int) { return atomicDecrement(&vi); } in operator --()
329 inline int operator++(int) { return atomicIncrement(&vi); } in operator ++()
330 inline void operator-=(int i) { atomicAdd(&vi, -i); } in operator -=()
331 inline void operator+=(int i) { atomicAdd(&vi, i); } in operator +=()
333 volatile int vi; member in rr::AtomicInt