Skip to content
Permalink
Browse files
[qt6] Use RecursiveMutex instead of QMutex in QgsSpatialIndexData
  • Loading branch information
zy6p committed May 14, 2021
1 parent 6a9133c commit 9e3f95ef545a97128b668628358102d7334406ce
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/core/qgsspatialindex.cpp
@@ -329,7 +329,11 @@ class QgsSpatialIndexData : public QSharedData
//! R-tree containing spatial index
SpatialIndex::ISpatialIndex *mRTree = nullptr;

#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
mutable QMutex mMutex;
#else
mutable QRecursiveMutex mMutex;
#endif

};

0 comments on commit 9e3f95e

Please sign in to comment.