PGROUTING  3.2
SIGINT_Handler Class Reference

#include "signalhandler.h"

Inheritance diagram for SIGINT_Handler:
Collaboration diagram for SIGINT_Handler:

Public Member Functions

 SIGINT_Handler (void)
 
sig_atomic_t gracefulQuit (void)
 
virtual void handleSignal (int signum)
 

Private Attributes

sig_atomic_t graceful_quit_
 

Detailed Description

Definition at line 108 of file signalhandler.h.

Constructor & Destructor Documentation

◆ SIGINT_Handler()

SIGINT_Handler::SIGINT_Handler ( void  )
inline

Definition at line 110 of file signalhandler.h.

110 : graceful_quit_(0) {}

Member Function Documentation

◆ gracefulQuit()

sig_atomic_t SIGINT_Handler::gracefulQuit ( void  )
inline

Definition at line 118 of file signalhandler.h.

118 { return this->graceful_quit_;}

References graceful_quit_.

◆ handleSignal()

virtual void SIGINT_Handler::handleSignal ( int  signum)
inlinevirtual

Implements EventHandler.

Definition at line 113 of file signalhandler.h.

113  {
114  if (signum == SIGINT) this->graceful_quit_ = 1;
115  }

References graceful_quit_.

Member Data Documentation

◆ graceful_quit_

sig_atomic_t SIGINT_Handler::graceful_quit_
private

Definition at line 121 of file signalhandler.h.

Referenced by gracefulQuit(), and handleSignal().


The documentation for this class was generated from the following file:
SIGINT_Handler::graceful_quit_
sig_atomic_t graceful_quit_
Definition: signalhandler.h:121