[cpp-threads] Some concerns with N2324

Lawrence Crowl Lawrence at Crowl.org
Mon Jul 16 20:02:29 BST 2007


On 7/16/07, Bronek Kozicki <brok at spamcop.net> wrote:
> Lawrence Crowl wrote:
> > The swap operation is essentially an assignment, but returning the
> > old value rather than the new value.  I am amenable to a change
> > in name, but the "swap" name follows from "compare and swap"
> > and practice in the concurrency community.
> >
> > Admittedly, it is a poor match to std::swap.
>
> I suggest this to be called atomic_cas (or similar), to avoid confusion

I'll bring up the issue when we discuss the paper.

-- 
Lawrence Crowl



More information about the cpp-threads mailing list