summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_tracker_pt/ftnoir_tracker_pt.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-06-04 19:52:37 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-06-05 09:56:03 +0200
commit67710b224346b962fe2b53f84b7ab17c8ee52191 (patch)
treeef50ab586225f236c462a59ec6c891c7287f842d /ftnoir_tracker_pt/ftnoir_tracker_pt.cpp
parent74b8483457b51727dba38aa05a5be9bc773d8a28 (diff)
all: pin computation threads to specific cores
Diffstat (limited to 'ftnoir_tracker_pt/ftnoir_tracker_pt.cpp')
-rw-r--r--ftnoir_tracker_pt/ftnoir_tracker_pt.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/ftnoir_tracker_pt/ftnoir_tracker_pt.cpp b/ftnoir_tracker_pt/ftnoir_tracker_pt.cpp
index 24867a4c..c6f14527 100644
--- a/ftnoir_tracker_pt/ftnoir_tracker_pt.cpp
+++ b/ftnoir_tracker_pt/ftnoir_tracker_pt.cpp
@@ -12,6 +12,7 @@
#include <QDebug>
#include <QFile>
#include <QCoreApplication>
+#include "opentrack/thread.hpp"
using namespace std;
using namespace cv;
@@ -64,6 +65,8 @@ void Tracker::run()
if (!log_file.open(QIODevice::WriteOnly | QIODevice::Text)) return;
QTextStream log_stream(&log_file);
#endif
+
+ Affinity thr;
while((commands & ABORT) == 0)
{