SignalHandler Class Reference

Ratpac-two: RAT::SignalHandler Class Reference
Ratpac-two
RAT::SignalHandler Class Reference

Static Public Member Functions

static void Init ()
 
static bool IsTermRequested ()
 
static void SigInt ()
 

Member Function Documentation

◆ Init()

void SignalHandler::Init ( )
static

Initialize signal handler.

After this call, this class will catch SIGINT.

◆ IsTermRequested()

static bool RAT::SignalHandler::IsTermRequested ( )
inlinestatic

If true, you should stop whatever you are doing after the current event.

◆ SigInt()

void SignalHandler::SigInt ( )
static

Send a SIGINT to the handler.

In general, this method is only called by the operating system in response to a SIGINT. You should not call it unless you want to simulate a Ctrl-C.

The first time this is received, the termination flag is set. The current SIGINT handler is also changed back to the default OS handler so that the second SIGINT will cause the default behavior (usually immediate termination of the application). Execution resumes without interruption.


The documentation for this class was generated from the following files:
  • /home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/core/include/RAT/SignalHandler.hh
  • /home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/core/src/SignalHandler.cc