/** * Set the integer to a new value. */ void set(int i) { oro_atomic_set( &_val, i ); }
const AtomicInt& operator=(const AtomicInt& orig) { oro_atomic_set( &_val, oro_atomic_read( &(orig._val))); return *this; }
Item() : content() { oro_atomic_set(&rc, 0); }
DataBuf() : data(), counter(), next() { oro_atomic_set(&counter, 0); }
Item( const T& initial_value ) : content(initial_value) { oro_atomic_set(&rc, 0); }