Canceled tile checking fixed.

This commit is contained in:
Daria Volvenkova 2016-02-29 13:33:58 +03:00 committed by Sergey Yershov
parent fdbe11107f
commit 44f9e24cd6

View file

@ -53,21 +53,21 @@ void TileInfo::ReadFeatureIndex(MapDataProvider const & model)
void TileInfo::DiscardFeatureInfo(FeatureID const & featureId, MemoryFeatureIndex & memIndex)
{
CheckCanceled();
MemoryFeatureIndex::Lock lock(memIndex);
UNUSED_VALUE(lock);
CheckCanceled();
m_featureInfo.erase(featureId);
}
bool TileInfo::SetFeatureOwner(FeatureID const & featureId, MemoryFeatureIndex & memIndex)
{
CheckCanceled();
MemoryFeatureIndex::Lock lock(memIndex);
UNUSED_VALUE(lock);
CheckCanceled();
if (!m_featureInfo[featureId])
{
bool isOwner = memIndex.SetFeatureOwner(featureId);