summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir/tracker.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-01-13 21:31:35 +0100
committerStanislaw Halik <sthalik@misaki.pl>2014-01-13 21:31:35 +0100
commitf60ced07e25eb48a79645a328b275125b8aa2ea9 (patch)
tree8830ddcf2a7d95543483d6b03f54e3b7c237d024 /facetracknoir/tracker.cpp
parent464cb73809b73f533d4ddc401425484b890b170c (diff)
hopefully work around tracker thread freeze on exit (issue #18)
Reported-by: @chsims1 Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>
Diffstat (limited to 'facetracknoir/tracker.cpp')
-rw-r--r--facetracknoir/tracker.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/facetracknoir/tracker.cpp b/facetracknoir/tracker.cpp
index fa1cdee1..57762640 100644
--- a/facetracknoir/tracker.cpp
+++ b/facetracknoir/tracker.cpp
@@ -31,6 +31,12 @@ Tracker::Tracker(FaceTrackNoIR *parent , main_settings& s) :
{
}
+Tracker::~Tracker()
+{
+ should_quit = true;
+ wait();
+}
+
static void get_curve(double pos, double& out, THeadPoseDOF& axis) {
bool altp = (pos < 0) && axis.opts.altp;
if (altp) {