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:
parent
8557bb2136
commit
35476063b7
@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user