Skip to content

Commit

Permalink
2D rendering of point clouds is NOT thread safe (argh\!)
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Dec 16, 2022
1 parent cee0b53 commit ac19285
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/core/pointcloud/qgspointcloudlayer.cpp
Expand Up @@ -122,7 +122,8 @@ QgsAbstractProfileGenerator *QgsPointCloudLayer::createProfileGenerator( const Q

QgsPointCloudDataProvider *QgsPointCloudLayer::dataProvider()
{
QGIS_PROTECT_QOBJECT_THREAD_ACCESS
// BAD! 2D rendering of point clouds is NOT thread safe
QGIS_PROTECT_QOBJECT_THREAD_ACCESS_NON_FATAL

return mDataProvider.get();
}
Expand Down
3 changes: 2 additions & 1 deletion src/core/providers/ept/qgseptprovider.cpp
Expand Up @@ -99,7 +99,8 @@ QString QgsEptProvider::description() const

QgsPointCloudIndex *QgsEptProvider::index() const
{
QGIS_PROTECT_QOBJECT_THREAD_ACCESS
// BAD! 2D rendering of point clouds is NOT thread safe
QGIS_PROTECT_QOBJECT_THREAD_ACCESS_NON_FATAL

return mIndex.get();
}
Expand Down

0 comments on commit ac19285

Please sign in to comment.