I want to use boost::atomic but what header to include ? there is no boost/atomic.hpp
I want to use boost::atomic but what header to include ? there is no
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Boost.Atomicis not an official part of boost as of now. If you still want to use it you need to get it from here. Alternatively you could tryBoost.Interprocessfor atomic operations, rely on compiler dependent extensions like gccs atomic operations (__sync_val_compare_and_swapand such) or, if c++11 is an option usestd::atomic<T>, which is almost identical toboost::atomic<T>IIRC.Edit:
As always these things change:
Boost.Atomicbecame an official part of boost with the current 1.53.0 release. It is now availible asboost/atomic.hpp.