Lines Matching refs:ai
301 AtomicInt() : ai() {} in AtomicInt()
302 AtomicInt(int i) : ai(i) {} in AtomicInt()
304 inline operator int() const { return ai.load(std::memory_order_acquire); } in operator int()
305 …inline void operator=(const AtomicInt& i) { ai.store(i.ai.load(std::memory_order_acquire), std::me… in operator =()
306 inline void operator=(int i) { ai.store(i, std::memory_order_release); } in operator =()
307 inline void operator--() { ai.fetch_sub(1, std::memory_order_acq_rel); } in operator --()
308 inline void operator++() { ai.fetch_add(1, std::memory_order_acq_rel); } in operator ++()
309 inline int operator--(int) { return ai.fetch_sub(1, std::memory_order_acq_rel) - 1; } in operator --()
310 inline int operator++(int) { return ai.fetch_add(1, std::memory_order_acq_rel) + 1; } in operator ++()
311 inline void operator-=(int i) { ai.fetch_sub(i, std::memory_order_acq_rel); } in operator -=()
312 inline void operator+=(int i) { ai.fetch_add(i, std::memory_order_acq_rel); } in operator +=()
314 std::atomic<int> ai; member in rr::AtomicInt