Fw: [patch] Make std::tr1::shared_ptr thread-safe.
Peter Dimov
pdimov@mmltd.net
Fri Apr 1 15:31:00 GMT 2005
Alexander Terekhov wrote:
> On Apr 1, 2005 4:51 PM, Paolo Carlini <pcarlini@suse.de> wrote:
[...]
>> { return __sync_fetch_and_add(__mem, __val); }
>
> Show me assembly, please.
You don't need assembly in this specific case. <ia64intrin.h> intrinsics are
"as if" fully fenced IIUC. I think that the idea is for the compiler to
treat them as PL2 "sync" labels. But I may be wrong, of course.
More information about the Libstdc++
mailing list