CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SharedResourceNames.cc
Go to the documentation of this file.
2 
3 #include <sstream>
4 #include <atomic>
5 
14 
15 static std::atomic<unsigned int> counter;
16 
17 // See comments in header file for the purpose of this function.
19  std::stringstream ss;
20  ss << "uniqueSharedResourceName" << counter.fetch_add(1);
21  return ss.str();
22 }
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 kCLHEPRandomEngine
static std::atomic< unsigned int > counter
static const std::string kPythia8
std::string uniqueSharedResourceName()
static const std::string kHerwig6