mirror of https://github.com/Icinga/icinga2.git
33781496da
m_DataBuffer may be modified concurrently while StatsFunc() is called, thus it's unsafe to call size() on it. As write access to m_DataBuffer is already synchronized by only modifying it from the single work queue thread, instead of adding a mutex, this commit adds a new std::atomic_size_t which is additionally updated when modifying m_DataBuffer and can safely be accessed in StatsFunc(). |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
elasticsearchwriter.cpp | ||
elasticsearchwriter.hpp | ||
elasticsearchwriter.ti | ||
gelfwriter.cpp | ||
gelfwriter.hpp | ||
gelfwriter.ti | ||
graphitewriter.cpp | ||
graphitewriter.hpp | ||
graphitewriter.ti | ||
influxdb2writer.cpp | ||
influxdb2writer.hpp | ||
influxdb2writer.ti | ||
influxdbcommonwriter.cpp | ||
influxdbcommonwriter.hpp | ||
influxdbcommonwriter.ti | ||
influxdbwriter.cpp | ||
influxdbwriter.hpp | ||
influxdbwriter.ti | ||
opentsdbwriter.cpp | ||
opentsdbwriter.hpp | ||
opentsdbwriter.ti | ||
perfdatawriter.cpp | ||
perfdatawriter.hpp | ||
perfdatawriter.ti |