eventloop: set thread name
Dieser Commit ist enthalten in:
Ursprung
ea1f153047
Commit
4dd0c93361
@ -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 <thread>
|
||||
#include <condition_variable>
|
||||
#include <functional>
|
||||
|
||||
#include <iostream>
|
||||
#include "../utils/setthreadname.hpp"
|
||||
|
||||
class EventLoop
|
||||
{
|
||||
@ -62,6 +62,8 @@ class EventLoop
|
||||
|
||||
void run()
|
||||
{
|
||||
setThreadName("eventloop");
|
||||
|
||||
std::unique_lock<std::mutex> lock(m_queueMutex);
|
||||
|
||||
while(m_run)
|
||||
|
||||
Laden…
x
In neuem Issue referenzieren
Einen Benutzer sperren