Skip to content

Commit e939f4c

Browse files
authored
Merge pull request #205 from tanolino/patch-1
Fix race conditions in ReaderSTEP.cpp
2 parents c23c01d + 318cae0 commit e939f4c

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

IfcPlusPlus/src/ifcpp/reader/ReaderSTEP.cpp

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -583,8 +583,10 @@ void ReaderSTEP::readStepLines( const std::vector<std::string>& step_lines, std:
583583
#ifdef ENABLE_OPENMP
584584
#pragma omp critical
585585
#endif
586-
unkown_entities.insert( unknown_keyword );
587-
err_unknown_entity << "unknown IFC entity: " << unknown_keyword << std::endl;
586+
{
587+
unkown_entities.insert( unknown_keyword );
588+
err_unknown_entity << "unknown IFC entity: " << unknown_keyword << std::endl;
589+
}
588590
}
589591
}
590592
}
@@ -595,8 +597,10 @@ void ReaderSTEP::readStepLines( const std::vector<std::string>& step_lines, std:
595597
#ifdef ENABLE_OPENMP
596598
#pragma omp critical
597599
#endif
598-
unkown_entities.insert( unknown_keyword );
599-
err_unknown_entity << "unknown IFC entity: " << unknown_keyword << std::endl;
600+
{
601+
unkown_entities.insert( unknown_keyword );
602+
err_unknown_entity << "unknown IFC entity: " << unknown_keyword << std::endl;
603+
}
600604
}
601605
}
602606
}

0 commit comments

Comments
 (0)