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.
- From: Paolo Carlini <pcarlini at suse dot de>
- To: Ulrich Drepper <drepper at redhat dot com>
- Cc: Jonathan Wakely <cow at compsoc dot man dot ac dot uk>, libstdc++ at gcc dot gnu dot org
- Date: Wed, 30 Mar 2005 20:07:26 +0200
- Subject: Re: [patch] Make std::tr1::shared_ptr thread-safe.
- References: <20050329130005.GA58022@compsoc.man.ac.uk> <424AE74A.7020400@redhat.com>
Ulrich Drepper wrote:
> This patch looks like a terrible idea. If it's intended as an interim
> step, perhaps, but this should be handled using atomic operations alone.
Thanks for your feedback: indeed (see the thread on libstdc++) the issue
is now becoming more clear. Our current plans are (I think): in the
4.0.0 time frame providing a stop-gap solution as outlined by Alexander
and Peter.
Then, readd to the library implementations of exchange_and_add for the
platforms that can implement it, otherwise fall back to the stop-gap
solution (some configury bits needed).
Thanks,
Paolo.