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 --- dinput/keybinding-worker.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'dinput') 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 #include @@ -112,6 +113,8 @@ KeybindingWorker& KeybindingWorker::make() void KeybindingWorker::run() { + portable::set_curthread_name("keybinding worker"); + while (!isInterruptionRequested()) { { -- cgit v1.2.3