Boost logo

Boost Users :

Subject: [Boost-users] shared_ptr on aix
From: Vojtech Fried (vfried_at_[hidden])
Date: 2012-10-30 08:42:12


Hi,

What is the status of boost/smart_ptr/detail/sp_counted_base_aix.hpp? It is not #included by default in sp_counted_base_aix.hpp. Is it safe to use or is it just an exprerimental version?

We have a multiplatform application and I am trying to make some improvements for it on AIX platform. One candidate right now is to utilize sp_counted_base_aix.hpp (boost/smart_ptr/detail/sp_counted_base_aix.hpp). It implements atomic counter without (pthread) mutexes. Using it improves performance of our app up to 10%. But sp_counted_base_aix.hpp is not used by default. I had to add an #ifed to sp_counted_base.hpp to make it work. I tested the implementation with a small sample program that copied and removed shared_ptrs in multiple threads and it works. But I am still concerned. How widely is this AIX specific implementation used? How risky is it for us to use it?

Best regards
Vojtech



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net