comparison Core/Logging.cpp @ 4026:05a363186da6

ORTHANC_BUILDING_FRAMEWORK_LIBRARY, Orthanc::InitializeFramework()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 09 Jun 2020 16:26:57 +0200
parents c783f4f29390
children
comparison
equal deleted inserted replaced
4019:bf35c4628777 4026:05a363186da6
535 535
536 536
537 void Initialize() 537 void Initialize()
538 { 538 {
539 boost::mutex::scoped_lock lock(loggingStreamsMutex_); 539 boost::mutex::scoped_lock lock(loggingStreamsMutex_);
540 loggingStreamsContext_.reset(new LoggingStreamsContext); 540
541 if (loggingStreamsContext_.get() == NULL)
542 {
543 loggingStreamsContext_.reset(new LoggingStreamsContext);
544 }
541 } 545 }
542 546
543 void Finalize() 547 void Finalize()
544 { 548 {
545 boost::mutex::scoped_lock lock(loggingStreamsMutex_); 549 boost::mutex::scoped_lock lock(loggingStreamsMutex_);