1 #ifndef FWCore_Utilities_CallNTimesNoWait_h
2 #define FWCore_Utilities_CallNTimesNoWait_h
46 if(not
m_done.load(std::memory_order_acquire) ) {
47 if(
m_ntimes.fetch_sub(1,std::memory_order_acq_rel)<0) {
48 m_done.store(
true,std::memory_order_release);
CallNTimesNoWait(unsigned short iNTimes)
std::atomic< int > m_ntimes
std::atomic< bool > m_done
volatile std::atomic< bool > shutdown_flag false