1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-26 08:49:37 +00:00

Resolves potential data races.

This commit is contained in:
Thomas Harte 2020-09-14 21:07:50 -04:00
parent 8557bb2136
commit 35476063b7

View File

@ -12,6 +12,7 @@
#include "ScanTarget.hpp"
#include <array>
#include <atomic>
#include <chrono>
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<int> frames_hit_ = 0;
std::atomic<int> frames_missed_ = 0;
};
}