replace std::atomic_int with boost::atomic_int