SyTen
signals.h File Reference

Signal catching support. More...

#include <atomic>
+ Include dependency graph for signals.h:
+ This graph shows which files directly or indirectly include this file:

Namespaces

 syten
 Syten namespace.
 
 syten::Signals
 Signal catching support.
 

Functions

void syten::Signals::enable ()
 Enables signal-handling. More...
 
void syten::Signals::handler (int signal)
 Signal handler, only sets the corresponding variable. More...
 
void syten::Signals::reset ()
 Clears all signal-received variables. More...
 

Variables

std::atomic< bool > syten::Signals::receivedINTR {false}
 Set to true on receipt of SIGINT. More...
 
std::atomic< bool > syten::Signals::receivedTERM {false}
 Set to true on receipt of SIGTERM. More...
 
std::atomic< bool > syten::Signals::receivedUSR1 {false}
 Set to true on receipt of SIGUSR1. More...
 
std::atomic< bool > syten::Signals::receivedUSR2 {false}
 Set to true on receipt of SIGUSR2. More...
 

Detailed Description

Signal catching support.