Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:28:52

0001 #ifndef FWCore_ParameterSet_ThreadsInfo_h
0002 #define FWCore_ParameterSet_ThreadsInfo_h
0003 
0004 namespace edm {
0005 
0006   class ParameterSet;
0007   class ParameterSetDescription;
0008 
0009   constexpr unsigned int s_defaultNumberOfThreads = 1;
0010   constexpr unsigned int s_defaultSizeOfStackForThreadsInKB = 10 * 1024;  //10MB
0011 
0012   struct ThreadsInfo {
0013     unsigned int nThreads_ = s_defaultNumberOfThreads;
0014     unsigned int stackSize_ = s_defaultSizeOfStackForThreadsInKB;
0015   };
0016 
0017   ThreadsInfo threadOptions(edm::ParameterSet const& pset);
0018   void setThreadOptions(ThreadsInfo const& threadsInfo, edm::ParameterSet& pset);
0019 
0020 }  // namespace edm
0021 #endif