summaryrefslogtreecommitdiffhomepage
path: root/dinput
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 /dinput
parent00a1a3d81b82a411cd8cbdf5a480c4007b2b60bc (diff)
compat: allow naming threads for debugging
Diffstat (limited to 'dinput')
-rw-r--r--dinput/keybinding-worker.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/dinput/keybinding-worker.cpp b/dinput/keybinding-worker.cpp
index 14676c05..0ceca789 100644
--- a/dinput/keybinding-worker.cpp
+++ b/dinput/keybinding-worker.cpp
@@ -10,6 +10,7 @@
#include "keybinding-worker.hpp"
#include "compat/macros.hpp"
+#include "compat/thread-name.hpp"
#include <QDebug>
#include <QMutexLocker>
@@ -112,6 +113,8 @@ KeybindingWorker& KeybindingWorker::make()
void KeybindingWorker::run()
{
+ portable::set_curthread_name("keybinding worker");
+
while (!isInterruptionRequested())
{
{