forked from organicmaps/organicmaps-tmp
Canceled tile checking fixed.
This commit is contained in:
parent
fdbe11107f
commit
44f9e24cd6
1 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue