PGROUTING  3.2
signalhandler.h File Reference
#include <stddef.h>
#include <csignal>
#include <exception>
Include dependency graph for signalhandler.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  EventHandler
 
class  SIGINT_Handler
 
class  SignalHandler
 
class  SIGQUIT_Handler
 
class  UserQuitException
 

Macros

#define REG_SIGINT
 
#define REG_SIGQUIT
 
#define THROW_ON_SIGINT
 

Macro Definition Documentation

◆ REG_SIGINT

#define REG_SIGINT
Value:
SIGINT_Handler sigint_handler; \
SignalHandler::instance()->registerHandler(SIGINT, &sigint_handler);

Definition at line 142 of file signalhandler.h.

◆ REG_SIGQUIT

#define REG_SIGQUIT
Value:
SIGQUIT_Handler sigquit_handler; \
SignalHandler::instance()->registerHandler(SIGQUIT, &sigquit_handler);

Definition at line 145 of file signalhandler.h.

◆ THROW_ON_SIGINT

#define THROW_ON_SIGINT
Value:
do { \
if ( sigint_handler.gracefulQuit() == 1 ) \
throw(UserQuitException("Abort on User Request!")); \
} while (0);

Definition at line 148 of file signalhandler.h.

SIGINT_Handler
Definition: signalhandler.h:108
UserQuitException
Definition: signalhandler.h:46
SIGQUIT_Handler
Definition: signalhandler.h:125
SignalHandler::registerHandler
EventHandler * registerHandler(int signum, EventHandler *eh)
Definition: signalhandler.cpp:47
SignalHandler::instance
static SignalHandler * instance(void)
Definition: signalhandler.cpp:38