CMS 3D CMS Logo

SendSourceTerminationSignalIfException.h
Go to the documentation of this file.
1 #ifndef FWCore_Framework_SendSourceTerminationSignalIfException_h
2 #define FWCore_Framework_SendSourceTerminationSignalIfException_h
3 //
4 // Package: FWCore/Framework
5 // Class : SendSourceTerminationSignalIfException
6 //
12 
13 namespace edm {
14 
15  //Sentry class to only send a signal if an
16  // exception occurs. An exception is identified
17  // by the destructor being called without first
18  // calling completedSuccessfully().
20  public:
23  if (reg_) {
25  }
26  }
27  void completedSuccessfully() { reg_ = nullptr; }
28 
29  private:
30  ActivityRegistry* reg_; // We do not use propagate_const because the registry itself is mutable.
31  };
32 } // namespace edm
33 
34 #endif
PreSourceEarlyTermination preSourceEarlyTerminationSignal_
HLT enums.