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

Gabriel Dos Reis gdr@integrable-solutions.net
Wed Mar 30 19:55:00 GMT 2005


Paolo Carlini <pcarlini@suse.de> writes:

| Ulrich Drepper wrote:
| 
| > 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.
| 
| Agreed. Jonathan are you willing to prepare 2 different patches, one for
| mainline (including the resurrection of compare_and_swap + the configury
| bits) and one for 4.0.0 simply using the safe proposal from Alexander
| and Peter? In my opinion, this is the best thing to do, given the
| current schedule (4.0.0 is *very* close!). Probably we can then use
| compare_and_swap in 4.0.1.

I don't think I agree.  I vote for only one version.  We don't need to
send in something broken just to pretend to correct it in 4.0.1.

-- Gaby



More information about the Libstdc++ mailing list