change static bool to static std::atomic<bool>
use std::atomic load() and store()
don't use edm::atomic<>::store()