Subj : Re: A question about atomic_ptr To : comp.programming.threads From : Peter Dimov Date : Mon Apr 11 2005 03:30 pm Alexander Terekhov wrote: >>>> if ( ! atomic_dec_acquire( &shared_ptr::refs ) ) > > That must be upcoming Apple's OSAtomicDecrementRelAcq32() or > OSAtomicDecrementSlbHsb32() (when X is immutable while managed > by shared_ptr<>). ;-) Speaking of which, is it possible to implement the ...SlbHsb variant in a more efficient manner on a PPC? On something else? (More effcient than the ....RelAcq, of course.) .