CMS 3D CMS Logo

SharedResourceNames.cc
Go to the documentation of this file.
2 
3 #include <sstream>
4 #include <atomic>
5 
13 
16 
17 static std::atomic<unsigned int> counter;
18 
19 // See comments in header file for the purpose of this function.
21  std::stringstream ss;
22  ss << "uniqueSharedResourceName" << counter.fetch_add(1);
23  return ss.str();
24 }
static const std::string kDD4hep
static const std::string kTauola
static const std::string kPhotos
static const std::string kPythia6
static const std::string kEvtGen
static const std::string kGEANT
static const std::string kDDGeometry
static const std::string kCLHEPRandomEngine
static std::atomic< unsigned int > counter
static const std::string kPythia8
std::string uniqueSharedResourceName()