File indexing completed on 2024-04-06 12:12:09
0001 #ifndef FWCore_Framework_EventAcquireSignalsSentry_h
0002 #define FWCore_Framework_EventAcquireSignalsSentry_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022 #include "FWCore/ServiceRegistry/interface/ActivityRegistry.h"
0023 #include "FWCore/ServiceRegistry/interface/ModuleCallingContext.h"
0024
0025
0026
0027
0028 namespace edm {
0029 class EventAcquireSignalsSentry {
0030 public:
0031 EventAcquireSignalsSentry(ActivityRegistry* iReg, ModuleCallingContext const* iContext)
0032 : m_reg(iReg), m_context(iContext) {
0033 iReg->preModuleEventAcquireSignal_(*(iContext->getStreamContext()), *iContext);
0034 }
0035
0036 ~EventAcquireSignalsSentry() { m_reg->postModuleEventAcquireSignal_(*(m_context->getStreamContext()), *m_context); }
0037
0038 private:
0039
0040 ActivityRegistry* m_reg;
0041 ModuleCallingContext const* m_context;
0042 };
0043 }
0044
0045 #endif