RSC  0.16.0
SignalWaiter.h File Reference
#include <stdexcept>
#include "rsc/rscexports.h"
Include dependency graph for SignalWaiter.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 rsc
 
 rsc::misc
 

Enumerations

enum  rsc::misc::Signal { rsc::misc::NO_SIGNAL = 0, rsc::misc::INTERRUPT_REQUESTED = 0x01, rsc::misc::TERMINATE_REQUESTED = 0x02, rsc::misc::QUIT_REQUESTED = 0x04 }
 Signals waitForSignal can wait for. More...
 

Functions

void rsc::misc::initSignalWaiter (int signals=INTERRUPT_REQUESTED|TERMINATE_REQUESTED)
 Prepare waiting for signals. More...
 
Signal rsc::misc::waitForSignal ()
 Block until one of the signals specified in initSignalWaiter arrives, then return the signal. More...
 
Signal rsc::misc::lastArrivedSignal ()
 Returns the last signal that has arrived at this process or Signal::NO_SIGNAL in case no signal arrived so far. More...
 
int rsc::misc::suggestedExitCode (Signal signal)
 Return suggested exit code for exiting the program after receiving signal signal. More...