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