summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt/ftnoir_tracker_pt.h
diff options
context:
space:
mode:
Diffstat (limited to 'tracker-pt/ftnoir_tracker_pt.h')
-rw-r--r--tracker-pt/ftnoir_tracker_pt.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/tracker-pt/ftnoir_tracker_pt.h b/tracker-pt/ftnoir_tracker_pt.h
index b7b0019a..65e367f5 100644
--- a/tracker-pt/ftnoir_tracker_pt.h
+++ b/tracker-pt/ftnoir_tracker_pt.h
@@ -11,6 +11,8 @@
#include "api/plugin-api.hpp"
#include "ftnoir_tracker_pt_settings.h"
+#include <atomic>
+
#include "numeric.hpp"
#include "camera.h"
@@ -79,9 +81,9 @@ private:
QSize preview_size;
- volatile unsigned point_count;
- volatile unsigned char commands;
- volatile bool ever_success;
+ std::atomic<unsigned> point_count;
+ std::atomic<unsigned char> commands;
+ std::atomic<bool> ever_success;
static constexpr f rad2deg = f(180/M_PI);
//static constexpr float deg2rad = float(M_PI/180);