15 #include "tbb/task_arena.h"
36 std::once_flag pluginFlag;
37 int setupPluginSystem() {
42 std::shared_ptr<edm::ProcessDesc> addDefaultServicesToProcessDesc(std::shared_ptr<edm::ProcessDesc> iDesc) {
51 std::shared_ptr<edm::ProcessDesc> setupThreading(std::shared_ptr<edm::ProcessDesc> iDesc) {
53 std::shared_ptr<edm::ParameterSet>
pset = iDesc->getProcessPSet();
56 threadsInfo.nThreads_ =
edm::setNThreads(threadsInfo.nThreads_, threadsInfo.stackSize_, tsiPtr);
68 std::make_unique<edm::JobReport>(
nullptr)));
84 : forcePluginSetupFirst_(setupPluginSystem()),
85 processor_(addDefaultServicesToProcessDesc(setupThreading(iDesc.processDesc())),
90 auto gil = PyEval_SaveThread();
94 PyEval_RestoreThread(gil);
98 auto gil = PyEval_SaveThread();
103 PyEval_RestoreThread(gil);