Boost logo

Boost :

Subject: Re: [boost] [atomic] comments
From: Peter Dimov (pdimov_at_[hidden])
Date: 2011-11-01 10:57:25


Phil Endecott wrote:
> For the record, I am already doing this and the code is posted here:
>
> https://svn.boost.org/trac/boost/ticket/5625

A few quick comments... you need explicit memory orders (acqrel for --,
relaxed for ++), because SC is overkill; long c = use_count_ should be out
of the loop.


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