Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2006-07-08 11:56:00


Michael van der Westhuizen wrote:
> Hi Peter,
>
> On 7/8/06, Peter Dimov <pdimov_at_[hidden]> wrote:
>> Thanks. I've attached my current version of
>> sp_counted_base_gcc_sparc.hpp. Does it look correct to you?
>
> compare_and_swap certainly looks correct.
>
> atomic_fetch_and_add and atomic_conditional_increment both call
> compare_exchange, which does not exist in this file - are they meant
> to call compare_and_swap?

Yes indeed. I've attached a fixed version.

> I like the use of __builtin_expect - I didn't know that existed!

Credit for that goes to Piotr Wyderski, the author of the original. :-)



Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk