Skip to content
Permalink
Browse files
Split QgsVectorFileWriter writeAsVectorFormat into two methods
to allow correct thread-safe usage

There is now a prepare method, which must be run on the main
thread and which prepopulates feature iterators and clones
renderers, and a separate write method which is safe to
execute on background threads (e.g. tasks)

Fixes #18516
  • Loading branch information
nyalldawson committed Mar 29, 2018
1 parent 5ecb7cc commit 95d2a27cbff18caae953ac2132dcb8d3f872cc9a
Showing with 220 additions and 141 deletions.
  1. +163 −129 src/core/qgsvectorfilewriter.cpp
  2. +51 −4 src/core/qgsvectorfilewriter.h
  3. +5 −5 src/core/qgsvectorfilewritertask.cpp
  4. +1 −3 src/core/qgsvectorfilewritertask.h

0 comments on commit 95d2a27

Please sign in to comment.