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)