1 #ifndef FWCore_Utilities_RunningAverage_H
2 #define FWCore_Utilities_RunningAverage_H
23 while(!
m_curr.compare_exchange_weak(e,e+1));
26 if (!
m_buffer[k].compare_exchange_strong(old,q))
return;
RunningAverage(unsigned int k=4)
std::array< std::atomic< int >, N > m_buffer
Abs< T >::type abs(const T &t)
std::atomic< int > m_mean
std::atomic< int > m_curr
void update(unsigned int q)