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: Alexander Terekhov <alexander dot terekhov at gmail dot com>
- Cc: Peter Dimov <pdimov at mmltd dot net>,Jonathan Wakely <cow at compsoc dot man dot ac dot uk>, libstdc++ at gcc dot gnu dot org
- Date: Tue, 29 Mar 2005 18:20:55 +0200
- Subject: Re: [patch] Make std::tr1::shared_ptr thread-safe.
- References: <OF51216141.374EAC91-ONC1256FD3.00537529-C1256FD3.005361E0@de.ibm.com> <e52efbe105032907371ce02f72@mail.gmail.com> <4249794B.9040703@suse.de> <e52efbe1050329081821f40058@mail.gmail.com>
Alexander Terekhov wrote:
>It won't work on Itanic (with pthread_mutex_lock/pthread_mutex_unlock
>impls NOT injecting "mf") even if GCC would "implement" all sorts of
>MT constraints as full-stop bidirectional asm-volatile-with-memory-
>clobber-or-whatnot fence silliness as it, in fact, does currently
>(unless I've just missed something) apart from data-dependent stuff
>(because it doesn't do data-dependent reordering stuff like value
>prediction which hardware can do).
>
>
Sh*t! Thanks a lot for the interesting technical details.
Paolo.