From 9a6dc54f6cba5643cc498cfd39b1475b84505dd9 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Wed, 24 Sep 2025 13:56:35 +0200 Subject: [PATCH] Thread local current_product_ #7155 --- src/ifcparse/IfcLogger.cpp | 3 ++- src/ifcparse/IfcLogger.h | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ifcparse/IfcLogger.cpp b/src/ifcparse/IfcLogger.cpp index ece1876521..5cd13b0bbb 100644 --- a/src/ifcparse/IfcLogger.cpp +++ b/src/ifcparse/IfcLogger.cpp @@ -33,6 +33,8 @@ #include #include +static my_thread_local boost::optional current_product_; + namespace { std::string get_time(bool with_milliseconds = false) { @@ -261,7 +263,6 @@ std::stringstream Logger::log_stream_; Logger::Severity Logger::verbosity_ = Logger::LOG_NOTICE; Logger::Severity Logger::max_severity_ = Logger::LOG_NOTICE; Logger::Format Logger::format_ = Logger::FMT_PLAIN; -boost::optional Logger::current_product_; boost::optional Logger::first_timepoint_; std::map Logger::performance_statistics_; std::map Logger::performance_signal_start_; diff --git a/src/ifcparse/IfcLogger.h b/src/ifcparse/IfcLogger.h index f05e88edde..4bca7be438 100644 --- a/src/ifcparse/IfcLogger.h +++ b/src/ifcparse/IfcLogger.h @@ -57,7 +57,6 @@ class IFC_PARSE_API Logger { static Severity verbosity_; static Format format_; - static boost::optional current_product_; static Severity max_severity_; static boost::optional first_timepoint_;