Subj : Re: CUJ Article: Atomic Reference Counting Pointers To : comp.programming.threads From : Joseph Seigh Date : Tue Jan 04 2005 05:55 pm On Tue, 04 Jan 2005 23:21:24 +0100, Alexander Terekhov wrote: > > Joseph Seigh wrote: > > [... "atomic" ...] > >> Java has GC. > > My. Suppose you've got a C++ impl with real GC. I'm talking about C++/GC > "better" incarnation of AtomicReference (see > http://tinyurl.com/3l3f7). AtomicReference is compare and swap for Java pointers. It has nothing to do with reference counting. You're not making any sense. I have mentioned using RCU to gc the atomic_ptr_refs which would work as long as the recycling of atomic_ptr_refs could handle the RCU delays, and you have to have RCU of course. But the orginal atomic_ptr by itself is more self contained and portable. Joe Seigh .