1 #ifndef FWCore_Framework_WorkerManager_h 2 #define FWCore_Framework_WorkerManager_h 27 class EventTransitionInfo;
28 class ExceptionCollector;
32 class ModuleTypeResolverMaker;
33 class PreallocationConfiguration;
34 namespace eventsetup {
47 std::shared_ptr<ActivityRegistry> actReg,
55 std::shared_ptr<ProcessConfiguration const> processConfiguration,
57 std::set<std::string>& unscheduledLabels,
58 std::vector<std::string>& shouldBeUsedLabels);
60 template <
typename T,
typename U>
62 typename T::TransitionInfoType&,
65 typename T::Context
const* topContext,
70 typename T::TransitionInfoType
const&,
74 typename T::Context
const*);
98 std::shared_ptr<ProcessConfiguration const> processConfiguration,
111 template <
typename T,
typename U>
113 typename T::TransitionInfoType&
info,
116 typename T::Context
const* topContext,
122 template <
typename T>
124 typename T::TransitionInfoType
const&
info,
128 typename T::Context
const*
context) {
roAction_t actions[nactions]
worker_container const & workers() const
void endStream(StreamID iID, StreamContext &streamContext)
void processAccumulatorsAsync(WaitingTaskHolder, typename T::TransitionInfoType const &, ServiceToken const &, StreamID, ParentContext const &, typename T::Context const *)
UnscheduledCallProducer unscheduled_
void runNowAsync(WaitingTaskHolder task, typename T::TransitionInfoType const &info, ServiceToken const &token, StreamID streamID, typename T::Context const *topContext, U const *context) const
void setupOnDemandSystem(EventTransitionInfo const &)
AllWorkers const & unscheduledWorkers() const
void deleteModuleIfExists(std::string const &moduleLabel)
void beginJob(ProductRegistry const &iRegistry, eventsetup::ESRecordsToProxyIndices const &, ProcessBlockHelperBase const &)
ExceptionToActionTable const * actionTable_
Worker * getWorker(ParameterSet &pset, ProductRegistry &preg, PreallocationConfiguration const *prealloc, std::shared_ptr< ProcessConfiguration const > processConfiguration, std::string const &label)
void const * lastSetupEventPrincipal_
void processOneOccurrenceAsync(WaitingTaskHolder, typename T::TransitionInfoType &, ServiceToken const &, StreamID, typename T::Context const *topContext, U const *context)
std::vector< Worker * > AllWorkers
WorkerManager(std::shared_ptr< ActivityRegistry > actReg, ExceptionToActionTable const &actions, ModuleTypeResolverMaker const *typeResolverMaker)
AllWorkers const & allWorkers() const
ExceptionToActionTable const & actionTable() const
void beginStream(StreamID iID, StreamContext &streamContext)
void addToUnscheduledWorkers(ParameterSet &pset, ProductRegistry &preg, PreallocationConfiguration const *prealloc, std::shared_ptr< ProcessConfiguration const > processConfiguration, std::string label, std::set< std::string > &unscheduledLabels, std::vector< std::string > &shouldBeUsedLabels)
void setupResolvers(Principal &principal)
WorkerRegistry workerReg_
The Registry of all workers that where requested Holds all instances of workers. In this implementati...
void addToAllWorkers(Worker *w)
void runAccumulatorsAsync(WaitingTaskHolder task, typename T::TransitionInfoType const &info, ServiceToken const &token, StreamID streamID, ParentContext const &parentContext, typename T::Context const *context)