1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Give all threads created by client human-readable name for debug

This commit is contained in:
Ivan Savenko
2023-08-20 23:09:17 +03:00
parent 1bad0e96ef
commit 142889e3a5
6 changed files with 19 additions and 6 deletions

View File

@@ -27,6 +27,7 @@
#include "../../CCallback.h"
#include "../../lib/CConfigHandler.h"
#include "../../lib/CThreadHelper.h"
#include "../../lib/TextOperations.h"
#include "../../lib/mapObjects/CArmedInstance.h"
@@ -255,6 +256,7 @@ void CInGameConsole::endEnteringText(bool processEnteredText)
//some commands like gosolo don't work when executed from GUI thread
auto threadFunction = [=]()
{
setThreadName("processCommand");
ClientCommandManager commandController;
commandController.processCommand(txt.substr(1), true);
};