Fw: [patch] Make std::tr1::shared_ptr thread-safe.

Alexander Terekhov alexander.terekhov@gmail.com
Fri Apr 1 17:19:00 GMT 2005


On Apr 1, 2005 7:10 PM, Peter Dimov <pdimov@mmltd.net> wrote:
> Alexander Terekhov wrote:
> >> or powerpc:
> >
> > Well, see
> >
> > http://sourceware.org/cgi-bin/cvsweb.cgi/libc/sysdeps/powerpc/bits/atomic.h?cvsroot=glibc
> 
> I see no "release" barriers in exchange_and_add or the decrements, only an
> "acquire if zero" in decrement_if_positive.

I meant __arch_compare_and_exchange_val_32_acq() and
__arch_compare_and_exchange_val_32_rel() which illustrates placement
and
barrier instruction for acquire and release respectively. Fully-fenced
stuff needs
both.

regards,
alexander.



More information about the Libstdc++ mailing list