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_aruco/ftnoir_tracker_aruco.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ftnoir_tracker_aruco') diff --git a/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp b/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp index 793469e2..2447e24a 100644 --- a/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp +++ b/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp @@ -16,6 +16,7 @@ #include #include #include "opentrack/camera-names.hpp" +#include "opentrack/thread.hpp" typedef struct { int width; @@ -73,6 +74,8 @@ void Tracker::getRT(cv::Matx33d& r_, cv::Vec3d& t_) void Tracker::run() { + Affinity thr; + int rint = s.resolution; if (rint < 0 || rint >= (int)(sizeof(resolution_choices) / sizeof(resolution_tuple))) rint = 0; -- cgit v1.2.3