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: libstdc++ and race detectors


On 14 July 2010 09:57, Jonathan Wakely wrote:
> 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

Oops, wrong directory, I meant tr1_impl/boost_sp_counted_base.h

> 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
>


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