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,
64 typename T::TransitionInfoType
const&,
67 typename T::Context
const*);
111 std::shared_ptr<ActivityRegistry>
const actReg_;
141 unsigned int iModuleIndex,
146 oneapi::tbb::task_group& iGroup);
152 oneapi::tbb::task_group& iGroup);
156 template <
typename T>
157 class PathSignalSentry {
163 : a_(
a), nwrwue_(nwrwue), state_(
state), pathContext_(pathContext) {
165 T::prePathSignal(a_, pathContext_);
167 ~PathSignalSentry() {
168 HLTPathStatus
status(state_, nwrwue_);
170 T::postPathSignal(a_,
status, pathContext_);
177 PathContext
const* pathContext_;
181 template <
typename T>
183 typename T::TransitionInfoType
const&
info,
186 typename T::Context
const*
context) {
Worker const * getWorker(size_type i) 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_
void runAllModulesAsync(WaitingTaskHolder, typename T::TransitionInfoType const &, ServiceToken const &, StreamID const &, typename T::Context const *)
Worker * pathStatusInserterWorker_
void processOneOccurrenceAsync(WaitingTaskHolder, EventTransitionInfo const &, ServiceToken const &, StreamID const &, StreamContext const *)
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_