Subj : Re: A question about atomic_ptr To : comp.programming.threads From : Chris Thomasson Date : Sun Apr 10 2005 04:48 pm DOH! > local_ptr = 0 > ------------------------------- > --local_ptr::refs > if ( ! local_ptr::refs ) > { > if ( ! atomic_dec_acquire( &shared_ptr::refs ) ) ^^^^^^^^^^^^^^^^ That's: if ( ! atomic_dec_release( &shared_ptr::refs ) ) > { > // whatever > } > } > > > > > I could see where this would be useful wrt performance. It actually might > be worth the trouble and the extra documentation... ;) :) .