MCPcopy Create free account
hub / github.com/3rdparty/libprocess / Data

Class Data

include/process/metrics/metric.hpp:74–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72
73private:
74 struct Data {
75 Data(const std::string& _name, const Option<Duration>& window)
76 : name(_name),
77 history(None())
78 {
79 if (window.isSome()) {
80 history =
81 Owned<TimeSeries<double>>(new TimeSeries<double>(window.get()));
82 }
83 }
84
85 const std::string name;
86
87 std::atomic_flag lock = ATOMIC_FLAG_INIT;
88
89 Option<Owned<TimeSeries<double>>> history;
90 };
91
92 std::shared_ptr<Data> data;
93};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected