Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4HadSignalHandler Class Reference

#include <G4HadSignalHandler.hh>

Public Member Functions

 G4HadSignalHandler (sighandler_t aNew)
 
 ~G4HadSignalHandler ()
 

Static Public Attributes

static std::vector< sighandler_ttheCache
 
static bool registered = false
 

Detailed Description

Definition at line 44 of file G4HadSignalHandler.hh.

Constructor & Destructor Documentation

◆ G4HadSignalHandler()

G4HadSignalHandler::G4HadSignalHandler ( sighandler_t  aNew)

Definition at line 45 of file G4HadSignalHandler.cc.

46{
47 if(!registered)
48 {
49 G4HadSignalHandler_local::G4HadSignalHandler_initial =
51 registered = true;
52 }
53 theCache.push_back(aNew);
54}
static std::vector< sighandler_t > theCache

◆ ~G4HadSignalHandler()

G4HadSignalHandler::~G4HadSignalHandler ( )

Definition at line 56 of file G4HadSignalHandler.cc.

57{
58 theCache.clear();
59 signal (SIGSEGV, G4HadSignalHandler_local::G4HadSignalHandler_initial);
60 registered = false;
61}

Member Data Documentation

◆ registered

bool G4HadSignalHandler::registered = false
static

Definition at line 53 of file G4HadSignalHandler.hh.

Referenced by G4HadSignalHandler(), and ~G4HadSignalHandler().

◆ theCache

std::vector< sighandler_t > G4HadSignalHandler::theCache
static

The documentation for this class was generated from the following files: