summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-09-17 17:33:47 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-09-17 17:33:47 +0200
commitd0f805f9943db3a14c0eed5ebb503000e5c9ea88 (patch)
treedbd0eeca0f587872ec41bfcb00e495db5f263750
parent92ce8f4ee9b5f54de6032e0f59446f13dffd8a7a (diff)
Sprinkle some volatile
These data members are accessed without a lock.
-rw-r--r--facetracknoir/tracker.h8
1 files 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 {