12 ATH_MSG_VERBOSE(
"Starting sysExecute for AthAsynchronousAlgorithm on slot "
14 if (m_currentCtx.get() ==
nullptr) {
18 m_currentCtx.reset(ctx_temp);
19 }
else if (m_currentCtx->evt() != ctx.evt() ||
20 m_currentCtx->slot() != ctx.slot()) {
22 << m_currentCtx->evt() <<
" (slot " << m_currentCtx->slot()
23 <<
") but incorrect. It should be " << ctx.evt() <<
"(slot "
24 << ctx.slot() <<
")");
25 return StatusCode::FAILURE;
27 return Gaudi::AsynchronousAlgorithm::sysExecute(ctx);
31 auto* currentCtx = m_currentCtx.get();
32 ATH_MSG_DEBUG(
"Setting current context to " << (
void*)currentCtx);
33 Gaudi::Hive::setCurrentContext(currentCtx);
34 return StatusCode::SUCCESS;