mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 18:21:59 +00:00
Thread local current_product_ #7155
This commit is contained in:
@@ -33,6 +33,8 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
|
|
||||||
|
static my_thread_local boost::optional<const IfcUtil::IfcBaseClass*> current_product_;
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
std::string get_time(bool with_milliseconds = false) {
|
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::verbosity_ = Logger::LOG_NOTICE;
|
||||||
Logger::Severity Logger::max_severity_ = Logger::LOG_NOTICE;
|
Logger::Severity Logger::max_severity_ = Logger::LOG_NOTICE;
|
||||||
Logger::Format Logger::format_ = Logger::FMT_PLAIN;
|
Logger::Format Logger::format_ = Logger::FMT_PLAIN;
|
||||||
boost::optional<const IfcUtil::IfcBaseClass*> Logger::current_product_;
|
|
||||||
boost::optional<long long> Logger::first_timepoint_;
|
boost::optional<long long> Logger::first_timepoint_;
|
||||||
std::map<std::string, double> Logger::performance_statistics_;
|
std::map<std::string, double> Logger::performance_statistics_;
|
||||||
std::map<std::string, double> Logger::performance_signal_start_;
|
std::map<std::string, double> Logger::performance_signal_start_;
|
||||||
|
|||||||
@@ -57,7 +57,6 @@ class IFC_PARSE_API Logger {
|
|||||||
|
|
||||||
static Severity verbosity_;
|
static Severity verbosity_;
|
||||||
static Format format_;
|
static Format format_;
|
||||||
static boost::optional<const IfcUtil::IfcBaseClass*> current_product_;
|
|
||||||
static Severity max_severity_;
|
static Severity max_severity_;
|
||||||
|
|
||||||
static boost::optional<long long> first_timepoint_;
|
static boost::optional<long long> first_timepoint_;
|
||||||
|
|||||||
Reference in New Issue
Block a user