Mercurial > hg > orthanc-wsi
comparison Applications/ApplicationToolbox.cpp @ 87:3d83d34cd4db
sync, optimizations
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 16 Dec 2016 16:44:14 +0100 |
parents | 7a3853d51c45 |
children | 14146ecd1688 |
comparison
equal
deleted
inserted
replaced
86:319b8c45c231 | 87:3d83d34cd4db |
---|---|
26 #include "../Resources/Orthanc/Core/MultiThreading/BagOfTasksProcessor.h" | 26 #include "../Resources/Orthanc/Core/MultiThreading/BagOfTasksProcessor.h" |
27 #include "../Resources/Orthanc/OrthancServer/FromDcmtkBridge.h" | 27 #include "../Resources/Orthanc/OrthancServer/FromDcmtkBridge.h" |
28 | 28 |
29 #include <boost/lexical_cast.hpp> | 29 #include <boost/lexical_cast.hpp> |
30 #include <boost/regex.hpp> | 30 #include <boost/regex.hpp> |
31 #include <cassert> | |
32 | |
33 | |
34 static bool DisplayPerformanceWarning() | |
35 { | |
36 (void) DisplayPerformanceWarning; // Disable warning about unused function | |
37 LOG(WARNING) << "Performance warning in whole-slide imaging: " | |
38 << "Non-release build, runtime debug assertions are turned on"; | |
39 return true; | |
40 } | |
41 | |
31 | 42 |
32 namespace OrthancWSI | 43 namespace OrthancWSI |
33 { | 44 { |
34 namespace ApplicationToolbox | 45 namespace ApplicationToolbox |
35 { | 46 { |
37 { | 48 { |
38 Orthanc::Logging::Initialize(); | 49 Orthanc::Logging::Initialize(); |
39 Orthanc::HttpClient::InitializeOpenSsl(); | 50 Orthanc::HttpClient::InitializeOpenSsl(); |
40 Orthanc::HttpClient::GlobalInitialize(); | 51 Orthanc::HttpClient::GlobalInitialize(); |
41 Orthanc::FromDcmtkBridge::InitializeDictionary(false /* don't load private dictionary */); | 52 Orthanc::FromDcmtkBridge::InitializeDictionary(false /* don't load private dictionary */); |
53 assert(DisplayPerformanceWarning()); | |
42 } | 54 } |
43 | 55 |
44 | 56 |
45 void GlobalFinalize() | 57 void GlobalFinalize() |
46 { | 58 { |