Subj : Re: A question about atomic_ptr To : comp.programming.threads From : Peter Dimov Date : Thu Apr 14 2005 04:08 pm Joe Seigh wrote: > The ppc version of atomic_ptr uses different interlocked logic since > ppc doesn't have double wide CAS. Is your PPC version available? > The template vs. macros and intrusive vs. non-intrusive are just details. I'm not sure. It's the details that make your atomic_ptr unique. A straightforward smart pointer with an atomic swap() seems pretty trivial, even I was able to "invent" it once (with the same lack of memory barriers as in Reinholz's code). .