File indexing completed on 2024-04-06 12:31:53
0001 #include "Utilities/Xerces/interface/Xerces.h"
0002 #include <xercesc/util/PlatformUtils.hpp>
0003 #include <mutex>
0004 #include <thread>
0005
0006 XERCES_CPP_NAMESPACE_USE
0007
0008 namespace cms {
0009 namespace concurrency {
0010 namespace {
0011 std::mutex g_xerces_mutex;
0012 }
0013
0014
0015
0016
0017
0018 void xercesInitialize() {
0019 std::unique_lock<std::mutex> l(g_xerces_mutex);
0020 XMLPlatformUtils::Initialize();
0021 }
0022
0023 void xercesTerminate() {
0024 std::unique_lock<std::mutex> l(g_xerces_mutex);
0025 XMLPlatformUtils::Terminate();
0026 }
0027 }
0028 }