16 namespace Concurrency {
27 bool eventfailed =
false;
38 <<
". Doing thread local initialization." <<
endmsg;
40 tps = m_serviceLocator->service(
"ThreadPoolSvc" );
42 log <<
MSG::ERROR <<
"unable to get the ThreadPoolSvc to trigger thread local initialization" <<
endmsg;
55 sc = m_algorithm->sysExecute( m_evtCtx );
57 log <<
MSG::WARNING <<
"Execution of algorithm " << m_algorithm->name() <<
" failed" <<
endmsg;
62 log <<
MSG::FATAL <<
".executeEvent(): Exception with tag=" << Exception.
tag() <<
" thrown by " 63 << m_algorithm->name() <<
endmsg;
67 log <<
MSG::FATAL <<
".executeEvent(): Standard std::exception thrown by " << m_algorithm->name() <<
endmsg;
71 log <<
MSG::FATAL <<
".executeEvent(): UNKNOWN Exception thrown by " << m_algorithm->name() <<
endmsg;
78 m_aess->updateEventStatus( eventfailed, m_evtCtx );
81 m_promote2ExecutedClosure();
Definition of the MsgStream class used to transmit messages.
Define general base for Gaudi exception.
Helper class to set the application return code in case of early exit (e.g.
SmartIF< IHiveWhiteBoard > & whiteboard() const
virtual void initThisThread()=0
Do thread local initialization of current thread.
tbb::task * execute() override
constexpr int UnhandledException
virtual StatusCode selectStore(size_t partitionIndex)=0
Activate an given 'slot' for all subsequent calls within the same thread id.
This class is used for returning status codes from appropriate routines.
virtual const std::string & tag() const
name tag for the exception, or exception type
The IAlgorithm is the interface implemented by the Algorithm base class.
GAUDI_API void setCurrentContext(const EventContext *ctx)
thread_local bool ThreadInitDone
bool isValid() const
Allow for check if smart pointer is valid.
Base class from which all concrete algorithm classes should be derived.
constexpr static const auto FAILURE
GAUDI_API void setCurrentContextEvt(long int evtN)
Helper functions to set/get the application return code.
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.