ATLAS Offline Software
Incidents.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef ATHENAINTERPROCESS_INCIDENTS_H
6 #define ATHENAINTERPROCESS_INCIDENTS_H
7 
8 #include "GaudiKernel/Incident.h"
9 #include "GaudiKernel/ThreadLocalContext.h"
10 
21 namespace AthenaInterprocess {
22  class UpdateAfterFork: public Incident {
23  public:
31  int workerProcessID,
32  const std::string& source,
33  const EventContext& ctx = Gaudi::Hive::currentContext()) :
34  Incident(source, type(), ctx), m_workerID(workerID), m_workerProcessID(workerProcessID) {};
35 
37  static const std::string& type();
38 
40  int workerID() const { return m_workerID; }
42  int workerProcessID() const { return m_workerProcessID; }
43 
44  private:
45  int m_workerID;
47  };
48 
49  inline const std::string& UpdateAfterFork::type()
50  {
51  static const std::string type("UpdateAfterFork");
52  return type;
53  }
54 }
55 #endif
AthenaInterprocess
Definition: FdsRegistry.h:11
AthenaInterprocess::UpdateAfterFork
Definition: Incidents.h:22
AthenaInterprocess::UpdateAfterFork::m_workerID
int m_workerID
the assigned worker ID
Definition: Incidents.h:45
AthenaInterprocess::UpdateAfterFork::workerID
int workerID() const
assigned worker ID from processing unit
Definition: Incidents.h:40
AthenaInterprocess::UpdateAfterFork::UpdateAfterFork
UpdateAfterFork(int workerID, int workerProcessID, const std::string &source, const EventContext &ctx=Gaudi::Hive::currentContext())
Constructor.
Definition: Incidents.h:30
AthenaInterprocess::UpdateAfterFork::m_workerProcessID
int m_workerProcessID
the assigned worker process ID from the OS
Definition: Incidents.h:46
AthenaInterprocess::UpdateAfterFork::type
static const std::string & type()
Incident type.
Definition: Incidents.h:49
AthenaInterprocess::UpdateAfterFork::workerProcessID
int workerProcessID() const
process ID of this worker from OS
Definition: Incidents.h:42