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

replace boost locks with std

This commit is contained in:
Laserlicht
2025-02-28 15:25:58 +01:00
parent 3fb9260f3b
commit 7dfb499edf
44 changed files with 148 additions and 147 deletions

View File

@@ -75,7 +75,7 @@ void ClientCommandManager::handleGoSoloCommand()
{
Settings session = settings.write["session"];
boost::mutex::scoped_lock interfaceLock(ENGINE->interfaceMutex);
std::scoped_lock interfaceLock(ENGINE->interfaceMutex);
if(!GAME->server().client)
{
@@ -128,7 +128,7 @@ void ClientCommandManager::handleControlaiCommand(std::istringstream& singleWord
singleWordBuffer >> colorName;
boost::to_lower(colorName);
boost::mutex::scoped_lock interfaceLock(ENGINE->interfaceMutex);
std::scoped_lock interfaceLock(ENGINE->interfaceMutex);
if(!GAME->server().client)
{
@@ -543,7 +543,7 @@ void ClientCommandManager::printCommandMessage(const std::string &commandMessage
if(currentCallFromIngameConsole)
{
boost::mutex::scoped_lock interfaceLock(ENGINE->interfaceMutex);
std::scoped_lock interfaceLock(ENGINE->interfaceMutex);
if(GAME->interface() && GAME->interface()->cingconsole)
{
GAME->interface()->cingconsole->addMessage("", "System", commandMessage);