20 #ifndef PBD_ATOMIC_COUNTER_H
21 #define PBD_ATOMIC_COUNTER_H
51 void set (gint new_value)
78 return m_value.compare_exchange_strong (old_value, new_value);
84 bool cas (gint old_value, gint new_value)
bool decrement_and_test()
bool compare_and_exchange(gint old_value, gint new_value)
bool cas(gint old_value, gint new_value)
atomic_counter & operator=(const atomic_counter &)
std::atomic< int > m_value
atomic_counter(gint value=0)
atomic_counter(const atomic_counter &)
bool atomic_dec_and_test(std::atomic< T > &aval)