mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-05 00:49:09 +02:00
replace boost locks with std
This commit is contained in:
@ -121,7 +121,7 @@ void ObjectManager::updateDistances(const int3 & pos)
|
||||
void ObjectManager::updateDistances(std::function<ui32(const int3 & tile)> distanceFunction)
|
||||
{
|
||||
// Workaround to avoid deadlock when accessed from other zone
|
||||
RecursiveLock lock(zone.areaMutex, boost::try_to_lock);
|
||||
RecursiveLock lock(zone.areaMutex, std::try_to_lock);
|
||||
if (!lock.owns_lock())
|
||||
{
|
||||
// Unsolvable problem of mutual access
|
||||
|
Reference in New Issue
Block a user