mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-17 22:11:36 +00:00
Small cleanup and try to please gcc
This commit is contained in:
@@ -114,8 +114,9 @@ namespace IfcGeom {
|
|||||||
class MAKE_TYPE_NAME(IteratorImplementation_) : public IteratorImplementation {
|
class MAKE_TYPE_NAME(IteratorImplementation_) : public IteratorImplementation {
|
||||||
private:
|
private:
|
||||||
|
|
||||||
std::atomic<bool> finished_ = false;
|
std::atomic<bool> finished_{ false };
|
||||||
std::atomic<int> progress_ = 0;
|
std::atomic<int> progress_{ 0 };
|
||||||
|
|
||||||
std::vector<geometry_conversion_task> tasks_;
|
std::vector<geometry_conversion_task> tasks_;
|
||||||
|
|
||||||
std::list<IfcGeom::Element*> all_processed_elements_;
|
std::list<IfcGeom::Element*> all_processed_elements_;
|
||||||
@@ -244,8 +245,6 @@ namespace IfcGeom {
|
|||||||
if (num_threads_ != 1) {
|
if (num_threads_ != 1) {
|
||||||
collect();
|
collect();
|
||||||
|
|
||||||
initialization_outcome_ = !tasks_.empty();
|
|
||||||
|
|
||||||
init_future_ = std::async(std::launch::async, [this]() { process_concurrently(); });
|
init_future_ = std::async(std::launch::async, [this]() { process_concurrently(); });
|
||||||
|
|
||||||
// wait for the first element, because after init(), get() can be called.
|
// wait for the first element, because after init(), get() can be called.
|
||||||
|
|||||||
Reference in New Issue
Block a user