From 4dd0c93361d97c0fefb0002ac70bd7d1ffeb2990 Mon Sep 17 00:00:00 2001 From: Reinder Feenstra Date: Sun, 9 Jan 2022 00:01:41 +0100 Subject: [PATCH] eventloop: set thread name --- server/src/core/eventloop.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server/src/core/eventloop.hpp b/server/src/core/eventloop.hpp index ebd3fd3b..5352b56b 100644 --- a/server/src/core/eventloop.hpp +++ b/server/src/core/eventloop.hpp @@ -3,7 +3,7 @@ * * This file is part of the traintastic source code. * - * Copyright (C) 2019-2020 Reinder Feenstra + * Copyright (C) 2019-2020,2022 Reinder Feenstra * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -28,8 +28,8 @@ #include #include #include - #include +#include "../utils/setthreadname.hpp" class EventLoop { @@ -62,6 +62,8 @@ class EventLoop void run() { + setThreadName("eventloop"); + std::unique_lock lock(m_queueMutex); while(m_run)