This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: tr1::shared_ptr and v3's atomic ops
- From: Paolo Carlini <pcarlini at suse dot de>
- To: Jonathan Wakely <cow at compsoc dot man dot ac dot uk>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Thu, 24 Mar 2005 17:56:25 +0100
- Subject: Re: tr1::shared_ptr and v3's atomic ops
- References: <20050324163849.GA96718@compsoc.man.ac.uk>
Jonathan Wakely wrote:
>1) could compare_and_swap be resurrected, or is the porting headache too
>much bother?
>
>
In principle, I don't see serious difficulties with this. From a
practical point of
view, however, I'm pretty sure it cannot be implemented on some older archs,
like i386, which we are still interested in supporting. Therefore, we should
envisage two different possibilities (lock-free/not lock-free) selected
at config
time. Maybe, in the 4.0 timeframe, better initially providing a locked
baseline.
Paolo.