1 #ifndef Utilities_XrdAdaptor_QualityMetric_h 2 #define Utilities_XrdAdaptor_QualityMetric_h 9 #include "oneapi/tbb/concurrent_unordered_map.h" 71 static std::unique_ptr<QualityMetricSource>
get(timespec
now,
const std::string &
id);
75 typedef oneapi::tbb::concurrent_unordered_map<std::string, QualityMetricUniqueSource *>
MetricMap;
103 std::unique_ptr<QualityMetricSource>
newSource(timespec
now);
108 #endif // Utilities_XrdAdaptor_QualityMetric_h
oneapi::tbb::concurrent_unordered_map< std::string, QualityMetricUniqueSource * > MetricMap
std::unique_ptr< QualityMetricSource > newSource(timespec now)
QualityMetric(timespec now, int default_value=260)
edm::propagate_const< QualityMetric * > m_parent1
QualityMetricUniqueSource & m_parent
void finishWatch(timespec now, int ms)
QualityMetricSource(QualityMetricUniqueSource &parent, timespec now, int default_value)
QualityMetric & operator=(const QualityMetric &)=delete
void startWatch(QualityMetricWatch &)
QualityMetricWatch & operator=(const QualityMetricWatch &)=delete
void swap(QualityMetricWatch &)
edm::propagate_const< QualityMetric * > m_parent2
static const unsigned interval_length
static QualityMetricFactory m_instance
QualityMetricUniqueSource(timespec now)