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) { sw::atomicExchange(&vi, i.vi); } in operator =()
325 inline void operator=(int i) { sw::atomicExchange(&vi, i); } in operator =()
326 inline void operator--() { sw::atomicDecrement(&vi); } in operator --()
327 inline void operator++() { sw::atomicIncrement(&vi); } in operator ++()
328 inline int operator--(int) { return sw::atomicDecrement(&vi); } in operator --()
329 inline int operator++(int) { return sw::atomicIncrement(&vi); } in operator ++()
330 inline void operator-=(int i) { sw::atomicAdd(&vi, -i); } in operator -=()
331 inline void operator+=(int i) { sw::atomicAdd(&vi, i); } in operator +=()
333 volatile int vi; member in sw::AtomicInt