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: [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.


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