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

Removed usage of boost::thread from vcmi, except for AI

This commit is contained in:
Ivan Savenko
2025-03-01 22:34:33 +00:00
parent 3d205e0291
commit 844dfb1604
28 changed files with 90 additions and 90 deletions

View File

@@ -229,7 +229,7 @@ bool CVCMIServer::prepareToStartGame()
if (lobbyProcessor)
lobbyProcessor->sendGameStarted();
auto progressTrackingThread = boost::thread([this, &progressTracking]()
auto progressTrackingThread = std::thread([this, &progressTracking]()
{
auto currentProgress = std::numeric_limits<Load::Type>::max();
@@ -243,7 +243,7 @@ bool CVCMIServer::prepareToStartGame()
loadProgress.progress = currentProgress;
announcePack(loadProgress);
}
boost::this_thread::sleep(boost::posix_time::milliseconds(50));
std::this_thread::sleep_for(std::chrono::milliseconds(50));
}
});