26 #ifndef G4HadSignalHandler_off
30 namespace G4HadSignalHandler_local
35 static void (*G4HadSignalHandler_initial)(
int);
45 { ;;;
if (!theCache_G4MT_TLS_) theCache_G4MT_TLS_ =
new std::vector<sighandler_t> ; std::vector<sighandler_t> &theCache = *theCache_G4MT_TLS_; ;;;
48 G4HadSignalHandler_local::G4HadSignalHandler_initial =
52 theCache.push_back(aNew);
56 { ;;;
if (!theCache_G4MT_TLS_) theCache_G4MT_TLS_ =
new std::vector<sighandler_t> ; std::vector<sighandler_t> &theCache = *theCache_G4MT_TLS_; ;;;
58 signal (SIGSEGV, G4HadSignalHandler_local::G4HadSignalHandler_initial);
65 for(
int c=iii;
c!=-1;
c--)
72 std::cerr <<
"callback to user-defined or default signal handler"<<endl;
73 signal (SIGSEGV, G4HadSignalHandler_local::G4HadSignalHandler_initial);
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
G4HadSignalHandler(sighandler_t aNew)
typedef void(XMLCALL *XML_ElementDeclHandler)(void *userData
static G4ThreadLocal std::vector< sighandler_t > * theCache_G4MT_TLS_
void(* sighandler_t)(int)
static G4ThreadLocal bool registered