Re: [patch] libstdc++/57250 shared_ptr atomic operations

2014-11-12 Thread Jonathan Wakely
On 17/10/14 19:27 +0100, Jonathan Wakely wrote: I'm not very proud of this solution, but unless anyone has a better ideas this is how I plan to add the atomic operations for shared_ptr. I used __gnu_cxx::__mutex instead of std::mutex because it has fewer dependencies, so the atomic operations sh

[patch] libstdc++/57250 shared_ptr atomic operations

2014-10-17 Thread Jonathan Wakely
I'm not very proud of this solution, but unless anyone has a better ideas this is how I plan to add the atomic operations for shared_ptr. I used __gnu_cxx::__mutex instead of std::mutex because it has fewer dependencies, so the atomic operations should always be available for shared_ptr even when