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
>>> Chris Thomasson wrote:
>>>> How does the original algorithm compare to yours?
>>> I haven't tried it yet. Will do.
> Hmmm. Doesn't seem to work. What does your dwcas return on success in
> 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
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 acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk