Boost logo

Boost :

Subject: Re: [boost] Atomic Shared Ptr
From: Olaf van der Spek (ml_at_[hidden])
Date: 2017-06-19 06:51:08


On Sat, Jun 17, 2017 at 10:49 PM, Peter Dimov via Boost
<boost_at_[hidden]> wrote:
> I made it a bit more complex:

Hi Peter,

Wow, that was fast. Thanks!

> The reason it was so simple was because it was using the already existing
> atomic functions. And no, it's not lock-free. Lock-freedom requires
> significantly more complexity (and a double-width CAS).

Why not improve the existing functions and keep using those?

-- 
Olaf

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