22 cached.set (std::make_unique<eflowLookupExp>(nExpBins, nExpSubBins));
25 if ( (cached->m_nExpBins != nExpBins) || (cached->m_nExpSubBins != nExpSubBins) )
27 throw std::runtime_error(
"eflowLookupExp: Instance with different bin numbers than existing requested!");
Cached unique_ptr with atomic update.
Define macros for attributes used to control the static checker.
#define ATLAS_THREAD_SAFE
static const eflowLookupExp * getInstance(int nExpBins=50, int nExpSubBins=1000)
eflowLookupExp(int nExpBins, int nExpSubBins)
CachedUniquePtrT< const T > CachedUniquePtr