
6 Apr
2009
6 Apr
'09
3:34 a.m.
I wrote:
I haven't read it, and have looked into atomic numbers, but couldn't find the "Boost Way" to do it (except perhaps poking around with shared_ptr innards). I wanted to use intrusive counts, since we have control over the object we are sharing. I've found the "Boost Way" to do it: boost::detail::atomic_count. It even does non-atomic counts if people disable thread-safety.
-- Michael Howell mhowell123@gmail.com