1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-23 00:28:08 +02:00

Conurrency related tweaks. Crashes in renderFrame should be fixed, but synchronization is still not perfect

This commit is contained in:
AlexVinS
2015-02-15 04:53:01 +03:00
parent b71d985d49
commit c46999bcb8
6 changed files with 13 additions and 11 deletions

View File

@ -543,10 +543,10 @@ void CGPreGame::update()
GH.drawFPSCounter();
}
void CGPreGame::runLocked(std::function<void(IUpdateable * )> cb)
void CGPreGame::runLocked(std::function<void()> cb)
{
boost::unique_lock<boost::recursive_mutex> lock(*CPlayerInterface::pim);
cb(this);
cb();
}
void CGPreGame::openCampaignScreen(std::string name)