This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [patch] Make std::tr1::shared_ptr thread-safe.
On Wed, Mar 30, 2005 at 08:46:51PM +0200, Paolo Carlini wrote:
> Ulrich Drepper wrote:
>
> > It's equivalent to the code I posted. Stick some conditionals around it
> > to use the operation only when available and use that change, not your
> > original patch. There is no reason to create such horrible code which
> > also increases the object size.
>
> Agreed. Jonathan are you willing to prepare 2 different patches, one for
> mainline (including the resurrection of compare_and_swap + the configury
> bits) and one for 4.0.0 simply using the safe proposal from Alexander
> and Peter? In my opinion, this is the best thing to do, given the
> current schedule (4.0.0 is *very* close!). Probably we can then use
> compare_and_swap in 4.0.1.
Sure, I'll start on that.