Small cleanup and try to please gcc

This commit is contained in:
Thomas Krijnen
2021-11-12 10:05:21 +01:00
parent 6d725f60fa
commit e9a18d030e
+3 -4
View File
@@ -114,8 +114,9 @@ namespace IfcGeom {
class MAKE_TYPE_NAME(IteratorImplementation_) : public IteratorImplementation {
private:
std::atomic<bool> finished_ = false;
std::atomic<int> progress_ = 0;
std::atomic<bool> finished_{ false };
std::atomic<int> progress_{ 0 };
std::vector<geometry_conversion_task> tasks_;
std::list<IfcGeom::Element*> 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.