modified constructor atomic flag operations to use
std::memory_order_relaxed