diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-06-04 19:52:37 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-06-05 09:56:03 +0200 |
commit | 67710b224346b962fe2b53f84b7ab17c8ee52191 (patch) | |
tree | ef50ab586225f236c462a59ec6c891c7287f842d /ftnoir_tracker_pt | |
parent | 74b8483457b51727dba38aa05a5be9bc773d8a28 (diff) |
all: pin computation threads to specific cores
Diffstat (limited to 'ftnoir_tracker_pt')
-rw-r--r-- | ftnoir_tracker_pt/ftnoir_tracker_pt.cpp | 3 |
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) { |