diff --git a/src/ifcgeom/IfcGeomIteratorImplementation.h b/src/ifcgeom/IfcGeomIteratorImplementation.h index b16476af47..af6dbf9225 100644 --- a/src/ifcgeom/IfcGeomIteratorImplementation.h +++ b/src/ifcgeom/IfcGeomIteratorImplementation.h @@ -114,8 +114,9 @@ namespace IfcGeom { class MAKE_TYPE_NAME(IteratorImplementation_) : public IteratorImplementation { private: - std::atomic finished_ = false; - std::atomic progress_ = 0; + std::atomic finished_{ false }; + std::atomic progress_{ 0 }; + std::vector tasks_; std::list all_processed_elements_; @@ -244,8 +245,6 @@ namespace IfcGeom { if (num_threads_ != 1) { collect(); - initialization_outcome_ = !tasks_.empty(); - init_future_ = std::async(std::launch::async, [this]() { process_concurrently(); }); // wait for the first element, because after init(), get() can be called.