mirror of
https://github.com/vcmi/vcmi.git
synced 2025-12-01 23:12:49 +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