fesa-core-gsi
7.0.0
|
#include <AtomicCMXMetric.h>
Inherits fesaGSI::CMXMetricBase< ValueType, CmxType >.
Public Member Functions | |
AtomicCMXMetric (boost::atomic< T > &value, CmxType &metric) | |
Public Member Functions inherited from fesaGSI::CMXMetricBase< ValueType, CmxType > | |
template<typename T > | |
T | get () const |
This class represents a CMX metric which monitors a boost::atomic<T> value. A reference to the monitored value is kept. As such, the monitored variable must live longer than the instance of this object.
|
inline |
Creates a metric which will monitor the given value. A reference to the monitored value is kept. As such, the monitored variable must live longer than this object.
value | reference to the value to be monitored |
metric | associated CMX metric. This object is copied. |