This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


On Apr 1, 2005 3:48 PM, Paolo Carlini <pcarlini@suse.de> wrote:
[...]
> I'm trying to understand the basic implications of your interesting
> analyses. 

It is about msync semantics of exchange_and_add(). If you rely on 
msync semantics which it doesn't provide, your code is broken. If it 
is guaranteed to provide "fully-fenced" semantics (mimicking Intel's 
__sync_fetch_and_add()), then (apart from unneeded overhead) you're 
fine.

regards,
alexander.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]