/ QGIS Public
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add method to force a detach for QgsSpatialIndex
Since the underlying libspatialindex is not thread safe on some platforms (e.g. Windows), manual calls to detach() must be made if a QgsSpatialIndex is to be accessed across multiple threads. Note that for platforms on which libspatialindex is thread safe, calling detach() has no effect and does not force the deep copy.
- Loading branch information
Showing 3 changed files with 36 additions and 0 deletions.