
Graham Bennett wrote:
I'm interested in getting boost::shared_ptr to use atomic ops on Solaris. I notice there is an implementation using the OS-provided atomics in boost/detail/sp_counted_base_solaris.hpp
About a year ago I got excited by the idea that Helge Bahmann's proposed Boost.Atomic library could become a single place for platform-specific atomic code to live, rather than having it replicated in each place that needs it (e.g. sp_counted_base). I even got as far as writing an sp_counted_base that used Boost.Atomic. I don't know what has stalled Boost.Atomic, but I still think this is a good approach. So rather than modifying sp_counted_base you might consider making Boost.Atomic work on your platform, especially if there are other things in your code that need atomic ops. Regards, Phil.