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

Ulrich Drepper drepper@redhat.com
Wed Mar 30 18:37:00 GMT 2005


Jonathan Wakely wrote:

> This is what I have in my working copy (where I've resurrected
> compare_and_swap) but I make no claims that it's correct:

It's equivalent to the code I posted.  Stick some conditionals around it
to use the operation only when available and use that change, not your
original patch.  There is no reason to create such horrible code which
also increases the object size.

--
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 251 bytes
Desc: OpenPGP digital signature
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20050330/f880edec/attachment.sig>


More information about the Libstdc++ mailing list