From 67710b224346b962fe2b53f84b7ab17c8ee52191 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 4 Jun 2015 19:52:37 +0200 Subject: all: pin computation threads to specific cores --- ftnoir_tracker_pt/ftnoir_tracker_pt.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ftnoir_tracker_pt') 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 #include #include +#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) { -- cgit v1.2.3