Skip to content
Permalink
Browse files

[ArcGIS REST] Add missing mutex to QgsAfsProvider (fixes #17513)

  • Loading branch information
manisandro committed Nov 22, 2017
1 parent db3c93c commit 9ed26361a6448fe1c0c8e263b0087d5bd8593f6b
Showing with 4 additions and 0 deletions.
  1. +2 −0 src/providers/arcgisrest/qgsafsshareddata.cpp
  2. +2 −0 src/providers/arcgisrest/qgsafsshareddata.h
@@ -19,6 +19,8 @@

bool QgsAfsSharedData::getFeature( QgsFeatureId id, QgsFeature &f, bool fetchGeometry, const QList<int> & /*fetchAttributes*/, const QgsRectangle &filterRect )
{
QMutexLocker locker(&mMutex);

// If cached, return cached feature
QMap<QgsFeatureId, QgsFeature>::const_iterator it = mCache.constFind( id );
if ( it != mCache.constEnd() )
@@ -17,6 +17,7 @@
#define QGSAFSSHAREDDATA_H

#include <QObject>
#include <QMutex>
#include "qgsfields.h"
#include "qgsfeature.h"
#include "qgsdatasourceuri.h"
@@ -38,6 +39,7 @@ class QgsAfsSharedData : public QObject

private:
friend class QgsAfsProvider;
QMutex mMutex;
QgsDataSourceUri mDataSource;
QgsRectangle mExtent;
QgsWkbTypes::Type mGeometryType = QgsWkbTypes::Unknown;

0 comments on commit 9ed2636

Please sign in to comment.
You can’t perform that action at this time.