Subject: Re: [boost] [smart_ptr] Proposal to extract intrusive_ref_counterfrom Boost.Log
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2013-08-28 23:21:20
On Wednesday 28 August 2013 22:44:54 Jeremy Maitin-Shepard wrote:
> Andrey Semashev <andrey.semashev <at> gmail.com> writes:
> > I'd like to move intrusive_ref_counter class from Boost.Log to
> > Boost.SmartPtr.
> This seems like a good idea. However, it seems that you would want to
> separate it into two separate classes, one that uses atomic operations and
> one that doesn't, rather than having the implementation be controlled by
> preprocessor definitions.
The config macro is related to Boost.Log. I was thinking about changing it to
BOOST_NO_THREADS after the extraction, so that the counter is always atomic in
multithreaded environments. But I can make it a template parameter policy, if
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk