Boost logo

Boost :

From: Chris Thomasson (cristom_at_[hidden])
Date: 2006-10-24 19:33:11

"Peter Dimov" <pdimov_at_[hidden]> wrote in message
> Chris Thomasson wrote:
>> "Peter Dimov" <pdimov_at_[hidden]> wrote in message
>> news:001801c6f7bd$c32f62a0$6607a8c0_at_pdimov2...
>>> Chris Thomasson wrote:
>>>> How does the original algorithm compare to yours?
>>> I haven't tried it yet. Will do.
>> Humm...
> Hmmm. Doesn't seem to work. What does your dwcas return on success in
> &cmp?
> Leaves it unchanged, perhaps? I always return the current value of &mtx
> there and it seems that your code depends on &cmp only changing if the
> dwcas
> fails.

I am using an IBM-Style CAS:

it updates the comprand and returns non-zero on failure. Here is exactly how
its implemented; look at the very first function in this file:


Does that clear some things up?

Boost list run by bdawes at, gregod at, cpdaniel at, john at