ATLAS Offline Software
Loading...
Searching...
No Matches
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
20
21namespace AthenaInterprocess {
22 class UpdateAfterFork: public Incident {
23 public:
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:
47 };
48
49 inline const std::string& UpdateAfterFork::type()
50 {
51 static const std::string type("UpdateAfterFork");
52 return type;
53 }
54}
55#endif
static const std::string & type()
Incident type.
Definition Incidents.h:49
int m_workerID
the assigned worker ID
Definition Incidents.h:45
int workerID() const
assigned worker ID from processing unit
Definition Incidents.h:40
UpdateAfterFork(int workerID, int workerProcessID, const std::string &source, const EventContext &ctx=Gaudi::Hive::currentContext())
Constructor.
Definition Incidents.h:30
int workerProcessID() const
process ID of this worker from OS
Definition Incidents.h:42
int m_workerProcessID
the assigned worker process ID from the OS
Definition Incidents.h:46