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.
Ulrich Drepper wrote:
> Paolo Carlini wrote:
>
>> Then, readd to the library implementations of exchange_and_add for the
>> platforms that can implement it, otherwise fall back to the stop-gap
>> solution (some configury bits needed).
>
> Using exchange_and_add is dangerous, it should not be used.
Of course, sorry, that is only a typo (I'm a bit tired): I meant
compare_and_swap,
CAS, in other terms.
Paolo.