LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "WorkerT.h"
Public Types | |
enum | State { Ready, Pass, Fail, Working, ExceptionThrown } |
Public Member Functions | |
WorkerT (T *, WorkerParams const &) | |
void | beginJob (detail::SharedResources const &) |
void | endJob () |
void | respondToOpenInputFile (FileBlock const &fb) |
void | respondToCloseInputFile (FileBlock const &fb) |
void | respondToOpenOutputFiles (FileBlock const &fb) |
void | respondToCloseOutputFiles (FileBlock const &fb) |
void | doWork (Transition, Principal &, ModuleContext const &) |
void | doWork_event (hep::concurrency::WaitingTaskPtr workerInPathDoneTask, EventPrincipal &, ModuleContext const &) |
void | doWork_event (EventPrincipal &, ModuleContext const &) |
ScheduleID | scheduleID () const |
bool | returnCode () const |
ModuleDescription const & | description () const |
hep::concurrency::SerialTaskQueueChain * | serialTaskQueueChain () const |
void | reset () |
std::size_t | timesVisited () const |
std::size_t | timesRun () const |
std::size_t | timesPassed () const |
std::size_t | timesFailed () const |
std::size_t | timesExcept () const |
void | runWorker (EventPrincipal &, ModuleContext const &) |
bool | isUnique () const |
Protected Member Functions | |
std::string const & | label () const |
Protected Attributes | |
std::atomic< std::size_t > | counts_visited_ {} |
std::atomic< std::size_t > | counts_run_ {} |
std::atomic< std::size_t > | counts_passed_ {} |
std::atomic< std::size_t > | counts_failed_ {} |
std::atomic< std::size_t > | counts_thrown_ {} |
Private Member Functions | |
hep::concurrency::SerialTaskQueueChain * | doSerialTaskQueueChain () const override |
void | doBeginJob (detail::SharedResources const &) override |
void | doEndJob () override |
void | doRespondToOpenInputFile (FileBlock const &) override |
void | doRespondToCloseInputFile (FileBlock const &) override |
void | doRespondToOpenOutputFiles (FileBlock const &) override |
void | doRespondToCloseOutputFiles (FileBlock const &) override |
void | doBegin (RunPrincipal &, ModuleContext const &) override |
void | doEnd (RunPrincipal &, ModuleContext const &) override |
void | doBegin (SubRunPrincipal &, ModuleContext const &) override |
void | doEnd (SubRunPrincipal &, ModuleContext const &) override |
bool | doProcess (EventPrincipal &, ModuleContext const &) override |
Private Attributes | |
cet::exempt_ptr< T > | module_ |
|
inherited |
Enumerator | |
---|---|
Ready | |
Pass | |
Fail | |
Working | |
ExceptionThrown |
Definition at line 49 of file Worker.h.
art::WorkerT< T >::WorkerT | ( | T * | module, |
WorkerParams const & | wp | ||
) |
Definition at line 51 of file WorkerT.h.
References art::ScheduleID::first(), art::module, and art::WorkerT< T >::module_.
|
inherited |
Definition at line 196 of file Worker.cc.
References art::Worker::actReg_, art::Worker::doBeginJob(), art::Worker::md_, art::ActivityRegistry::sPostModuleBeginJob, and art::ActivityRegistry::sPreModuleBeginJob.
|
inherited |
Definition at line 121 of file Worker.cc.
References art::Worker::md_.
Referenced by art::OutputWorker::OutputWorker(), and art::OutputWorker::writeEvent().
|
overrideprivatevirtual |
Implements art::Worker.
Definition at line 129 of file WorkerT.h.
References art::WorkerT< T >::module_.
|
overrideprivatevirtual |
Implements art::Worker.
Definition at line 143 of file WorkerT.h.
References art::WorkerT< T >::module_.
|
overrideprivatevirtual |
Implements art::Worker.
Definition at line 87 of file WorkerT.h.
References art::WorkerT< T >::module_.
|
overrideprivatevirtual |
Implements art::Worker.
Definition at line 136 of file WorkerT.h.
References art::WorkerT< T >::module_.
|
overrideprivatevirtual |
Implements art::Worker.
Definition at line 150 of file WorkerT.h.
References art::WorkerT< T >::module_.
|
overrideprivatevirtual |
Implements art::Worker.
Definition at line 94 of file WorkerT.h.
References art::WorkerT< T >::module_.
|
overrideprivatevirtual |
Implements art::Worker.
Definition at line 157 of file WorkerT.h.
References art::Worker::counts_failed_, art::Worker::counts_passed_, art::Worker::counts_run_, and art::WorkerT< T >::module_.
|
overrideprivatevirtual |
Implements art::Worker.
Definition at line 108 of file WorkerT.h.
References art::WorkerT< T >::module_.
|
overrideprivatevirtual |
Implements art::Worker.
Definition at line 122 of file WorkerT.h.
References art::WorkerT< T >::module_.
|
overrideprivatevirtual |
Implements art::Worker.
Definition at line 101 of file WorkerT.h.
References art::WorkerT< T >::module_.
|
overrideprivatevirtual |
Implements art::Worker.
Definition at line 115 of file WorkerT.h.
References art::WorkerT< T >::module_.
|
overrideprivatevirtual |
Implements art::Worker.
Definition at line 76 of file WorkerT.h.
References art::WorkerT< T >::module_.
|
inherited |
Definition at line 250 of file Worker.cc.
References art::Worker::actReg_, art::errors::BadAlloc, art::errors::BadExceptionType, art::BeginRun, art::BeginSubRun, art::Worker::cached_exception_, art::Worker::doBegin(), art::Worker::doEnd(), art::EndRun, art::EndSubRun, art::Worker::ExceptionThrown, art::Worker::Fail, art::Worker::md_, art::errors::OtherArt, art::Worker::Pass, art::Worker::Ready, art::errors::ScheduleExecutionFailure, art::ActivityRegistry::sPostModuleBeginRun, art::ActivityRegistry::sPostModuleBeginSubRun, art::ActivityRegistry::sPostModuleEndRun, art::ActivityRegistry::sPostModuleEndSubRun, art::ActivityRegistry::sPreModuleBeginRun, art::ActivityRegistry::sPreModuleBeginSubRun, art::ActivityRegistry::sPreModuleEndRun, art::ActivityRegistry::sPreModuleEndSubRun, art::Worker::state_, art::errors::StdException, art::errors::Unknown, and art::Worker::Working.
|
inherited |
Referenced by art::Worker::isUnique().
|
inherited |
Definition at line 366 of file Worker.cc.
References art::Worker::actions_, art::Worker::actReg_, art::errors::BadAlloc, art::errors::BadExceptionType, art::Worker::cached_exception_, art::Worker::counts_failed_, art::Worker::counts_passed_, art::Worker::counts_thrown_, art::Worker::counts_visited_, art::Worker::doProcess(), art::Worker::ExceptionThrown, art::Worker::Fail, art::actions::FailModule, art::ActionTable::find(), art::actions::IgnoreCompletely, art::Worker::md_, art::errors::OtherArt, art::Worker::Pass, art::Worker::returnCode_, art::ActivityRegistry::sPostModule, art::ActivityRegistry::sPreModule, art::Worker::state_, art::errors::StdException, art::errors::Unknown, and art::Worker::Working.
|
inherited |
Definition at line 207 of file Worker.cc.
References art::Worker::actReg_, art::Worker::doEndJob(), art::Worker::md_, art::ActivityRegistry::sPostModuleEndJob, and art::ActivityRegistry::sPreModuleEndJob.
|
inherited |
Definition at line 592 of file Worker.cc.
References art::Worker::counts_visited_, art::Worker::doWork_event(), art::ScheduleID::first(), art::Worker::md_, art::ModuleDescription::moduleThreadingType(), art::replicated, art::Worker::runWorker(), art::ModuleContext::scheduleID(), art::Worker::scheduleID_, art::Worker::serialTaskQueueChain(), TDEBUG_BEGIN_FUNC_SI, TDEBUG_END_FUNC_SI, TDEBUG_FUNC_SI, art::Worker::waitingTasks_, and art::Worker::workStarted_.
|
protectedinherited |
Definition at line 127 of file Worker.cc.
References art::Worker::md_, and art::ModuleDescription::moduleLabel().
Referenced by art::OutputWorker::closeFile(), art::OutputWorker::openFile(), and art::OutputWorker::OutputWorker().
|
inherited |
Definition at line 149 of file Worker.cc.
References art::Worker::cached_exception_, art::Worker::Ready, art::Worker::returnCode_, art::Worker::scheduleID_, art::Worker::state_, TDEBUG_FUNC_SI, art::Worker::waitingTasks_, and art::Worker::workStarted_.
|
inherited |
Definition at line 226 of file Worker.cc.
References art::Worker::actReg_, art::Worker::doRespondToCloseInputFile(), art::Worker::md_, art::ActivityRegistry::sPostModuleRespondToCloseInputFile, and art::ActivityRegistry::sPreModuleRespondToCloseInputFile.
|
inherited |
Definition at line 242 of file Worker.cc.
References art::Worker::actReg_, art::Worker::doRespondToCloseOutputFiles(), art::Worker::md_, art::ActivityRegistry::sPostModuleRespondToCloseOutputFiles, and art::ActivityRegistry::sPreModuleRespondToCloseOutputFiles.
|
inherited |
Definition at line 218 of file Worker.cc.
References art::Worker::actReg_, art::Worker::doRespondToOpenInputFile(), art::Worker::md_, art::ActivityRegistry::sPostModuleRespondToOpenInputFile, and art::ActivityRegistry::sPreModuleRespondToOpenInputFile.
|
inherited |
Definition at line 234 of file Worker.cc.
References art::Worker::actReg_, art::Worker::doRespondToOpenOutputFiles(), art::Worker::md_, art::ActivityRegistry::sPostModuleRespondToOpenOutputFiles, and art::ActivityRegistry::sPreModuleRespondToOpenOutputFiles.
|
inherited |
|
inherited |
Definition at line 466 of file Worker.cc.
References art::Worker::actions_, art::Worker::actReg_, art::errors::BadAlloc, art::errors::BadExceptionType, art::Worker::cached_exception_, art::Worker::counts_failed_, art::Worker::counts_passed_, art::Worker::counts_thrown_, art::Worker::doProcess(), art::Worker::ExceptionThrown, art::Worker::Fail, art::actions::FailModule, art::actions::FailPath, art::ActionTable::find(), art::actions::IgnoreCompletely, art::Worker::md_, art::ModuleContext::onEndPath(), art::errors::OtherArt, art::Worker::Pass, art::Worker::returnCode_, art::ModuleContext::scheduleID(), art::actions::SkipEvent, art::ActivityRegistry::sPostModule, art::ActivityRegistry::sPreModule, art::Worker::state_, art::errors::StdException, TDEBUG_BEGIN_TASK_SI, TDEBUG_END_TASK_SI, art::errors::Unknown, art::Worker::waitingTasks_, and art::Worker::Working.
Referenced by art::Worker::isUnique().
|
inlineinherited |
|
inherited |
Definition at line 140 of file Worker.cc.
References art::Worker::doSerialTaskQueueChain().
Referenced by art::Worker::isUnique().
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
protectedinherited |
Definition at line 101 of file Worker.h.
Referenced by art::WorkerT< T >::doProcess(), art::OutputWorker::doProcess(), art::Worker::doWork_event(), art::Worker::runWorker(), and art::Worker::timesFailed().
|
protectedinherited |
Definition at line 100 of file Worker.h.
Referenced by art::WorkerT< T >::doProcess(), art::OutputWorker::doProcess(), art::Worker::doWork_event(), art::Worker::runWorker(), and art::Worker::timesPassed().
|
protectedinherited |
Definition at line 99 of file Worker.h.
Referenced by art::WorkerT< T >::doProcess(), art::OutputWorker::doProcess(), and art::Worker::timesRun().
|
protectedinherited |
Definition at line 102 of file Worker.h.
Referenced by art::Worker::doWork_event(), art::Worker::runWorker(), and art::Worker::timesExcept().
|
protectedinherited |
Definition at line 98 of file Worker.h.
Referenced by art::Worker::doWork_event(), art::Worker::isUnique(), and art::Worker::timesVisited().
|
private |
Definition at line 41 of file WorkerT.h.
Referenced by art::WorkerT< T >::doBegin(), art::WorkerT< T >::doBeginJob(), art::WorkerT< T >::doEnd(), art::WorkerT< T >::doEndJob(), art::WorkerT< T >::doProcess(), art::WorkerT< T >::doRespondToCloseInputFile(), art::WorkerT< T >::doRespondToCloseOutputFiles(), art::WorkerT< T >::doRespondToOpenInputFile(), art::WorkerT< T >::doRespondToOpenOutputFiles(), art::WorkerT< T >::doSerialTaskQueueChain(), and art::WorkerT< T >::WorkerT().