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 --- logic/pipeline.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'logic') diff --git a/logic/pipeline.cpp b/logic/pipeline.cpp index 75f91848..4cf52e54 100644 --- a/logic/pipeline.cpp +++ b/logic/pipeline.cpp @@ -16,6 +16,7 @@ #include "compat/math.hpp" #include "compat/meta.hpp" #include "compat/macros.hpp" +#include "compat/thread-name.hpp" #include "pipeline.hpp" #include "logic/shortcuts.h" @@ -515,6 +516,8 @@ static void debug_timings(float backlog_time) void pipeline::run() { + portable::set_curthread_name("tracking pipeline"); + #if defined _WIN32 const MMRESULT mmres = timeBeginPeriod(1); #endif -- cgit v1.2.3