
29 Aug
2013
29 Aug
'13
3:21 a.m.
On Wednesday 28 August 2013 22:44:54 Jeremy Maitin-Shepard wrote:
Andrey Semashev
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 it's needed.