Subj : Re: A question about atomic_ptr To : comp.programming.threads From : Chris Thomasson Date : Sun Apr 17 2005 09:02 am > I wonder if I am missing any race-conditions. The object compare after the > increment should work... Humm... "Seems" to work for transferring a "shared" shared_ptr to a "strictly local" shared_ptr. Its an expensive technique as well ( smr based check "after" inc ); DWCAS would work like a charm. And of course, transferring a "strictly local" shared_ptr to a "shared" shared_ptr would require another "tricky" scheme. DWCAS ( when you have access to it! ) is looking more and more attractive wrt shared_ptr... .