summaryrefslogtreecommitdiffhomepage
path: root/logic/pipeline.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-04-29 15:52:24 +0200
committerStanislaw Halik <sthalik@misaki.pl>2019-04-29 15:52:24 +0200
commitb061108a1e98ed1d1f869f4e71fe35373515b2a0 (patch)
treeeebfaa427b31a07083d863b8d13e8ec56d543971 /logic/pipeline.cpp
parent00a1a3d81b82a411cd8cbdf5a480c4007b2b60bc (diff)
compat: allow naming threads for debugging
Diffstat (limited to 'logic/pipeline.cpp')
-rw-r--r--logic/pipeline.cpp3
1 files changed, 3 insertions, 0 deletions
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