Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[qt6] Use RecursiveMutex instead of QMutex in QgsSpatialIndexData
  • Loading branch information
zy6p committed May 14, 2021
1 parent 6a9133c commit 9e3f95e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/qgsspatialindex.cpp
Expand Up @@ -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

};

Expand Down

0 comments on commit 9e3f95e

Please sign in to comment.