Skip to content

Commit

Permalink
Merge pull request #43209 from zy6p/patch-qt6-qmutex
Browse files Browse the repository at this point in the history
[qt6] Use RecursiveMutex instead of QMutex in QgsSpatialIndexData
  • Loading branch information
m-kuhn committed May 15, 2021
2 parents a701fe6 + 9e3f95e commit 8abb178
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/qgsspatialindex.cpp
Original file line number Diff line number Diff line change
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 8abb178

Please sign in to comment.