[patch] Make std::tr1::shared_ptr thread-safe.
Paolo Carlini
pcarlini@suse.de
Wed Mar 30 18:29:00 GMT 2005
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.
More information about the Libstdc++
mailing list