1 #ifndef FWCore_Framework_Path_h 2 #define FWCore_Framework_Path_h 34 class EventTransitionInfo;
35 class ModuleDescription;
36 class PathStatusInserter;
54 std::shared_ptr<ActivityRegistry> reg,
104 std::shared_ptr<ActivityRegistry>
const actReg_;
134 unsigned int iModuleIndex,
139 oneapi::tbb::task_group& iGroup);
145 oneapi::tbb::task_group& iGroup);
149 template <
typename T>
150 class PathSignalSentry {
156 : a_(
a), nwrwue_(nwrwue), state_(
state), pathContext_(pathContext) {
158 T::prePathSignal(a_, pathContext_);
160 ~PathSignalSentry() {
161 HLTPathStatus
status(state_, nwrwue_);
163 T::postPathSignal(a_,
status, pathContext_);
167 ActivityRegistry* a_;
170 PathContext
const* pathContext_;
Worker const * getWorker(size_type i) const
void processEventUsingPathAsync(WaitingTaskHolder, EventTransitionInfo const &, ServiceToken const &, StreamID const &, StreamContext const *)
int timesPassed(size_type i) const
std::atomic< unsigned int > modulesToRun_
void recordStatus(int nwrwue, hlt::HLTState state)
roAction_t actions[nactions]
std::vector< WorkerInPath > WorkersInPath
WorkersInPath::size_type size_type
HLTState
status of a trigger path
void runNextWorkerAsync(unsigned int iNextModuleIndex, EventTransitionInfo const &, ServiceToken const &, StreamID const &, StreamContext const *, oneapi::tbb::task_group &iGroup)
WaitingTaskList waitingTasks_
void handleWorkerFailure(cms::Exception &e, int nwrwue, ModuleDescription const &, std::string const &id)
void setPathStatusInserter(PathStatusInserter *pathStatusInserter, Worker *pathStatusInserterWorker)
void workerFinished(std::exception_ptr const *, unsigned int iModuleIndex, EventTransitionInfo const &, ServiceToken const &, StreamID const &, StreamContext const *, oneapi::tbb::task_group &iGroup)
int timesFailed(size_type i) const
Path & operator=(Path const &)=delete
int timesExcept(size_type i) const
void setEarlyDeleteHelpers(std::map< const Worker *, EarlyDeleteHelper *> const &)
std::shared_ptr< HLTGlobalStatus > TrigResPtr
void finished(std::exception_ptr, StreamContext const *, EventTransitionInfo const &, StreamID const &)
#define CMS_THREAD_GUARD(_var_)
void updateCounters(hlt::HLTState state)
int timesVisited(size_type i) const
ExceptionToActionTable const *const act_table_
static void exceptionContext(cms::Exception &ex, bool isEvent, bool begin, BranchType branchType, ModuleDescription const &, std::string const &id, PathContext const &)
std::shared_ptr< ActivityRegistry > const actReg_
std::atomic< bool > printedException_
unsigned int bitPosition(size_type i) const
std::string const & pathName() const
std::string const & name() const
std::atomic< bool > stateLock_
Worker * pathStatusInserterWorker_
Path(int bitpos, std::string const &path_name, WorkersInPath const &workers, TrigResPtr trptr, ExceptionToActionTable const &actions, std::shared_ptr< ActivityRegistry > reg, StreamContext const *streamContext, PathContext::PathType pathType)
void threadsafe_setFailedModuleInfo(int nwrwue, bool iExceptionHappened)
PathStatusInserter * pathStatusInserter_