43 {
44
46 MsgStream
log( messageSvc,
"AlgTask" );
47
48
49 AvalancheSchedulerSvc::TaskSpec
ts;
54 return;
55 }
56
57 EventContext& evtCtx = *(
ts.contextPtr );
58 IAlgorithm*& iAlgoPtr =
ts.algPtr;
59
60 Gaudi::Algorithm* this_algo = dynamic_cast<Gaudi::Algorithm*>( iAlgoPtr );
62
63 bool eventfailed = false;
65
66
68
71 <<
". Doing thread local initialization." <<
endmsg;
73 tps->initThisThread();
74 } else {
75 log <<
MSG::ERROR <<
"Unable to get the ThreadPoolSvc to trigger thread local initialization" <<
endmsg;
77 }
78 }
79
80
82 try {
84
87 eventfailed = true;
88 }
89 rcg.ignore();
90 } catch ( const GaudiException& Exception ) {
94 eventfailed = true;
95 } catch ( const std::exception& Exception ) {
98 eventfailed = true;
99 } catch ( ... ) {
101 eventfailed = true;
102 }
103
104
106
107
109
110
113
115 }
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
constexpr _OI move(_II __first, _II __last, _OI __result)
ios_base & hex(ios_base &__base)
ios_base & dec(ios_base &__base)
bool next(TaskSpec &ts, bool asynchronous)
tbb::concurrent_bounded_queue< action > m_actionsQueue
Queue where closures are stored and picked for execution.
SmartIF< IAlgResourcePool > m_algResourcePool
Cache for the algorithm resource pool.
SmartIF< IHiveWhiteBoard > & whiteboard() const
GaudiException(std::string Message, std::string Tag, StatusCode Code)
Constructor (1).
virtual void updateEventStatus(const bool &b, const EventContext &ctx)=0
virtual StatusCode releaseAlgorithm(std::string_view name, IAlgorithm *&algo)=0
Release a certain algorithm.
virtual StatusCode sysExecute(const EventContext &)=0
System execution. This method invokes the execute() method of a concrete algorithm.
virtual StatusCode selectStore(size_t partitionIndex)=0
Activate an given 'slot' for all subsequent calls within the same thread id.
virtual SmartIF< IService > & service(const Gaudi::Utils::TypeNameString &typeName, const bool createIf=true)=0
Returns a smart pointer to a service.
void ignore() const
Allow discarding a StatusCode without warning.
constexpr static const auto FAILURE
constexpr int UnhandledException
GAUDI_API void setCurrentContextEvt(long int evtN)
GAUDI_API void setCurrentContext(const EventContext *ctx)