1 #ifndef FWCore_Framework_WorkerManager_h 2 #define FWCore_Framework_WorkerManager_h 24 class ExceptionCollector;
28 class PreallocationConfiguration;
37 std::shared_ptr<ActivityRegistry> actReg,
42 std::shared_ptr<ProcessConfiguration> processConfiguration,
44 std::set<std::string>& unscheduledLabels,
45 std::vector<std::string>& shouldBeUsedLabels);
49 template <
typename T,
typename U>
53 typename T::Context
const* topContext,
55 bool cleaningUpAfterException =
false);
56 template <
typename T,
typename U>
62 typename T::Context
const* topContext,
84 std::shared_ptr<ProcessConfiguration const> processConfiguration,
98 template <
typename T,
typename U>
103 typename T::Context
const* topContext,
105 bool cleaningUpAfterException) {
125 template <
typename T,
typename U>
128 typename T::MyPrincipal& ep,
131 typename T::Context
const* topContext,
roAction_t actions[nactions]
void endStream(StreamID iID, StreamContext &streamContext)
UnscheduledCallProducer unscheduled_
void setOnDemandProducts(ProductRegistry &pregistry, std::set< std::string > const &unscheduledLabels) const
void addToUnscheduledWorkers(ParameterSet &pset, ProductRegistry &preg, PreallocationConfiguration const *prealloc, std::shared_ptr< ProcessConfiguration > processConfiguration, std::string label, std::set< std::string > &unscheduledLabels, std::vector< std::string > &shouldBeUsedLabels)
void processOneOccurrence(typename T::MyPrincipal &principal, EventSetup const &eventSetup, StreamID streamID, typename T::Context const *topContext, U const *context, bool cleaningUpAfterException=false)
void addContextAndPrintException(char const *context, cms::Exception &ex, bool disablePrint)
void beginJob(ProductRegistry const &iRegistry)
ExceptionToActionTable const * actionTable_
void const * lastSetupEventPrincipal_
void processOneOccurrenceAsync(WaitingTask *task, typename T::MyPrincipal &principal, EventSetup const &eventSetup, StreamID streamID, typename T::Context const *topContext, U const *context)
std::vector< Worker * > AllWorkers
void runNowAsync(WaitingTask *task, typename T::MyPrincipal &p, EventSetup const &es, StreamID streamID, typename T::Context const *topContext, U const *context) const
std::list< std::string > const & context() const
void beginStream(StreamID iID, StreamContext &streamContext)
AllWorkers const & allWorkers() const
void runNow(typename T::MyPrincipal &p, EventSetup const &es, StreamID streamID, typename T::Context const *topContext, U const *context) const
WorkerRegistry workerReg_
The Registry of all workers that where requested Holds all instances of workers. In this implementati...
auto wrap(F iFunc) -> decltype(iFunc())
WorkerManager(std::shared_ptr< ActivityRegistry > actReg, ExceptionToActionTable const &actions)
void setupOnDemandSystem(Principal &principal, EventSetup const &es)
Worker * getWorker(ParameterSet &pset, ProductRegistry &preg, PreallocationConfiguration const *prealloc, std::shared_ptr< ProcessConfiguration const > processConfiguration, std::string const &label)
ExceptionToActionTable const & actionTable() const
void addToAllWorkers(Worker *w)