move to boost::atomic