summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/SDL
diff options
context:
space:
mode:
authorJordan Woyak <jordan.woyak@gmail.com>2025-09-27 02:43:45 -0500
committerJordan Woyak <jordan.woyak@gmail.com>2025-09-30 03:04:58 -0500
commit956f6cfbd263498136ccaa573484a954d4eaf983 (patch)
treeef0ffd8a80ac3032cea49d1a362a6862769dd637 /Source/Core/InputCommon/ControllerInterface/SDL
parent7cf6e7258c64544abef598ddbe5e83d08294eed8 (diff)
SDL: Name the hotplug thread.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/SDL')
-rw-r--r--Source/Core/InputCommon/ControllerInterface/SDL/SDL.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/SDL/SDL.cpp b/Source/Core/InputCommon/ControllerInterface/SDL/SDL.cpp
index da6e829bd1..f530c98730 100644
--- a/Source/Core/InputCommon/ControllerInterface/SDL/SDL.cpp
+++ b/Source/Core/InputCommon/ControllerInterface/SDL/SDL.cpp
@@ -16,6 +16,7 @@
#include "Common/Event.h"
#include "Common/Logging/Log.h"
#include "Common/ScopeGuard.h"
+#include "Common/Thread.h"
#include "InputCommon/ControllerInterface/ControllerInterface.h"
#include "InputCommon/ControllerInterface/SDL/SDLGamepad.h"
@@ -139,6 +140,8 @@ InputBackend::InputBackend(ControllerInterface* controller_interface)
SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_PS5_PLAYER_LED, "0");
m_hotplug_thread = std::thread([this] {
+ Common::SetCurrentThreadName("SDL Hotplug Thread");
+
Common::ScopeGuard quit_guard([] {
// TODO: there seems to be some sort of memory leak with SDL, quit isn't freeing everything up
SDL_Quit();