This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: libstdc++ and race detectors
On 14 July 2010 07:31, Kostya Serebryany wrote:
>> Can the macros be put directly here?
> Yes. http://codereview.appspot.com/download/issue1800042_12001.diff
>
>> Is a new function needed?
> Only if it will be used on other cases, which doesn't seem to be the case.
My preference would be to do it like that rather than adding yet
another level of indirection to our atomics.
The shared_ptr refcounts in bits/boost_sp_counted_base.h should be
able to use the same approach for _M_release and _M_weak_release, but
I'm not sure about the compare-and-swap loop in _M_add_ref_lock