File indexing completed on 2024-04-06 12:12: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;
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 }
0021 #endif