Agora  1.2.0
Agora project
SignalHandler Class Reference

#include <signal_handler.h>

Public Member Functions

 SignalHandler ()
 
 ~SignalHandler ()=default
 
void SetupSignalHandlers ()
 

Static Public Member Functions

static bool GotExitSignal ()
 
static void SetExitSignal (bool _bExitSignal)
 
static void ExitSignalHandler (int _ignored)
 

Static Protected Attributes

static bool mb_got_exit_signal = false
 

Constructor & Destructor Documentation

◆ SignalHandler()

SignalHandler::SignalHandler ( )
default

Default Contructor.

◆ ~SignalHandler()

SignalHandler::~SignalHandler ( )
default

Member Function Documentation

◆ ExitSignalHandler()

void SignalHandler::ExitSignalHandler ( int  _ignored)
static

Sets exit signal to true.

Parameters
[in]_ignoredNot used but required by function prototype to match required handler.
Here is the caller graph for this function:

◆ GotExitSignal()

bool SignalHandler::GotExitSignal ( )
static

Destructor. Returns the bool flag indicating whether we received an exit signal

Returns
Flag indicating shutdown of program
Here is the caller graph for this function:

◆ SetExitSignal()

void SignalHandler::SetExitSignal ( bool  _bExitSignal)
static

Sets the bool flag indicating whether we received an exit signal

Here is the caller graph for this function:

◆ SetupSignalHandlers()

void SignalHandler::SetupSignalHandlers ( )

Set up the signal handlers for CTRL-C.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ mb_got_exit_signal

bool SignalHandler::mb_got_exit_signal = false
staticprotected

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