| 72 | |
| 73 | private: |
| 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 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected