Subj : Re: A question about atomic_ptr To : comp.programming.threads From : Chris Thomasson Date : Thu Apr 14 2005 07:59 pm > The point is that you no longer need tricks in the copy constructor. The > original race is only a problem when the count is 1 so that you can have > the > assignment destroy the count and then the copy constructor attempt to > increment it. No. The race-condition occurs when a thread that does not "previously" own a reference tries to increment the count. shared_ptr overcomes this race-condition by "requiring" that a thread own a reference in order to make a copy... .