diff --git a/Outputs/DisplayMetrics.hpp b/Outputs/DisplayMetrics.hpp index c8fae3124..1983bdac1 100644 --- a/Outputs/DisplayMetrics.hpp +++ b/Outputs/DisplayMetrics.hpp @@ -12,6 +12,7 @@ #include "ScanTarget.hpp" #include +#include #include namespace Outputs { @@ -51,8 +52,8 @@ class Metrics { size_t line_total_history_pointer_ = 0; void add_line_total(int); - int frames_hit_ = 0; - int frames_missed_ = 0; + std::atomic frames_hit_ = 0; + std::atomic frames_missed_ = 0; }; }