PGROUTING  2.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
signalhandler.h File Reference
#include <stddef.h>
#include <csignal>
#include <exception>

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

#define REG_SIGINT
#define REG_SIGQUIT
Value:
SIGQUIT_Handler sigquit_handler; \
SignalHandler::instance()->registerHandler(SIGQUIT, &sigquit_handler);
EventHandler * registerHandler(int signum, EventHandler *eh)
static SignalHandler * instance(void)

Definition at line 145 of file signalhandler.h.

#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.

Referenced by Pgr_dijkstra< G >::dijkstra_one_goal_visitor::examine_vertex(), Pgr_dijkstra< G >::dijkstra_many_goal_visitor::examine_vertex(), and Pgr_dijkstra< G >::dijkstra_distance_visitor::examine_vertex().