Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Fix deadlock when number of point cloud files loaded >= available thr…
…eads This would cause multiple QgsTasks to be created, each of which uses one thread -- then if the number of tasks matches or exceeds the number of available threads, then the call to blockingMapped in QgsPointCloudStatsCalculator will hang forever waiting for a thread to be freed (which will never happen, since the running tasks CANNOT complete as they are blocked) Avoid this by releasing and reserving the current thread from the QgsPointCloudStatsCalculationTask before performing the blockingMapped function.
- Loading branch information