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_aruco | |
parent | 74b8483457b51727dba38aa05a5be9bc773d8a28 (diff) |
all: pin computation threads to specific cores
Diffstat (limited to 'ftnoir_tracker_aruco')
-rw-r--r-- | ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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 <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #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; |