From d0f805f9943db3a14c0eed5ebb503000e5c9ea88 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 17 Sep 2013 17:33:47 +0200 Subject: Sprinkle some volatile These data members are accessed without a lock. --- facetracknoir/tracker.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/facetracknoir/tracker.h b/facetracknoir/tracker.h index c831df61..89f54bd5 100644 --- a/facetracknoir/tracker.h +++ b/facetracknoir/tracker.h @@ -77,12 +77,12 @@ public: altp = iniFile.value(secondary).toBool(); iniFile.endGroup(); } - double headPos; // Current position (from faceTracker, radials or meters) - float invert; // Invert measured value (= 1.0f or -1.0f) + volatile double headPos; // Current position (from faceTracker, radials or meters) + volatile float invert; // Invert measured value (= 1.0f or -1.0f) FunctionConfig curve; // Function to translate input -> output FunctionConfig curveAlt; - bool altp; - double zero; + volatile bool altp; + volatile double zero; }; class Tracker : public QThread { -- cgit v1.2.3