From b061108a1e98ed1d1f869f4e71fe35373515b2a0 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 29 Apr 2019 15:52:24 +0200 Subject: compat: allow naming threads for debugging --- tracker-pt/ftnoir_tracker_pt.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tracker-pt') diff --git a/tracker-pt/ftnoir_tracker_pt.cpp b/tracker-pt/ftnoir_tracker_pt.cpp index 73112522..d7484e9c 100644 --- a/tracker-pt/ftnoir_tracker_pt.cpp +++ b/tracker-pt/ftnoir_tracker_pt.cpp @@ -10,6 +10,7 @@ #include "video/video-widget.hpp" #include "compat/math-imports.hpp" #include "compat/check-visible.hpp" +#include "compat/thread-name.hpp" #include "pt-api.hpp" @@ -51,6 +52,8 @@ Tracker_PT::~Tracker_PT() void Tracker_PT::run() { + portable::set_curthread_name("tracker/pt"); + maybe_reopen_camera(); while(!isInterruptionRequested()) -- cgit v1.2.3