1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Nullkiller AIGateway.cpp consistent and independent thread names, similar to Nullkiller2

This commit is contained in:
Mircea TheHonestCTO
2025-08-17 14:04:31 +02:00
parent c22a248c21
commit 3d94d652db

View File

@@ -603,7 +603,7 @@ void AIGateway::yourTurn(QueryID queryID)
asyncTasks->run([this]()
{
ScopedThreadName guard("NKAI::makingTurn");
ScopedThreadName guard("NKAI::AIGateway::makingTurn");
makeTurn();
});
}
@@ -845,7 +845,6 @@ bool AIGateway::makePossibleUpgrades(const CArmedInstance * obj)
void AIGateway::makeTurn()
{
setThreadName("AIGateway::makeTurn");
MAKING_TURN;
auto day = cb->getDate(Date::DAY);
@@ -1628,7 +1627,7 @@ void AIGateway::executeActionAsync(const std::string & description, const std::f
asyncTasks->run([this, description, whatToDo]()
{
ScopedThreadName guard("NKAI::" + description);
ScopedThreadName guard("NKAI::AIGateway::" + description);
SET_GLOBAL_STATE(this);
std::shared_lock gsLock(CGameState::mutex);
whatToDo();