Subj : Re: A question about atomic_ptr To : comp.programming.threads From : Alexander Terekhov Date : Mon Apr 11 2005 02:22 pm Chris Thomasson wrote: > > >> if ( ! atomic_dec_release( &shared_ptr::refs ) ) > > > > Depending on value, you'll need either acquire or release here. > > Ahh yes... Release on > 0 and Acquire for < 1 correct? Well, given that in my (unwritten) book, mad std::string cows "eat" ("OS" comes from Apple) OSAtomicDecrementIfGreaterThanOneSlbHsb32() with checking and no msync for zero ("unsharable" indicator), I'd say "almost". Okay? ;-) regards, alexander. .