DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
DDCore
include
DD4hep
SignalHandler.h
Go to the documentation of this file.
1
//==========================================================================
2
// AIDA Detector description implementation
3
//--------------------------------------------------------------------------
4
// Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
5
// All rights reserved.
6
//
7
// For the licensing terms see $DD4hepINSTALL/LICENSE.
8
// For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
9
//
10
// Author : M.Frank
11
//
12
//==========================================================================
13
#ifndef DD4HEP_DDCORE_SIGNALHANDLER_H
14
#define DD4HEP_DDCORE_SIGNALHANDLER_H
15
17
#include <csignal>
18
#include <memory>
19
21
namespace
dd4hep
{
22
24
29
class
SignalHandler
{
30
public
:
32
typedef
bool (*
signal_handler_t
)(
void
* user_context,
int
signal);
34
class
implementation;
35
36
public
:
38
SignalHandler
();
40
virtual
~SignalHandler
();
42
void
applyHandlers
();
44
bool
registerHandler
(
int
sig_num,
void
* param,
signal_handler_t
handler);
45
};
46
}
// End namespace dd4hep
47
#endif // DD4HEP_DDCORE_SIGNALHANDLER_H
dd4hep::SignalHandler::applyHandlers
void applyHandlers()
(Re-)apply registered interrupt handlers to override potentially later registrations by other librari...
SignalHandler
dd4hep::SignalHandler::SignalHandler
SignalHandler()
Default constructor.
dd4hep::SignalHandler::~SignalHandler
virtual ~SignalHandler()
Default destructor.
dd4hep::SignalHandler::registerHandler
bool registerHandler(int sig_num, void *param, signal_handler_t handler)
Specialized handler for any signal.
dd4hep
Namespace for the AIDA detector description toolkit.
Definition:
AlignmentsCalib.h:28
signal_handler_t
SignalHandler::signal_handler_t signal_handler_t
Definition:
SignalHandler.cpp:27
Generated on Thu Nov 7 2024 13:31:54 for DD4hep by
1.8.18