#include <Handlers.h>
Inheritance diagram for ASSA::SIGINTHandler:
Public Member Functions | |
SIGINTHandler () | |
constructor | |
int | handle_signal (int signum_) |
Receive SIGINT signal. | |
sig_atomic_t | graceful_quit () |
Indicates whether graceful quit signal has been raised by the signal handler. | |
void | resetState () |
Reset state of the object to initial. | |
Private Attributes | |
sig_atomic_t | m_graceful_quit |
flag that indicates whether signal was caught. |
Definition at line 40 of file Handlers.h.
|
constructor
Definition at line 67 of file Handlers.h. References ASSA::SIGHAND, and trace_with_mask. 00068 : m_graceful_quit (0) 00069 { 00070 trace_with_mask("SIGINTHandler::SIGINTHandler", SIGHAND); 00071 }
|
|
Indicates whether graceful quit signal has been raised by the signal handler.
Definition at line 88 of file Handlers.h. References m_graceful_quit. 00089 { 00090 return m_graceful_quit; 00091 }
|
|
Receive SIGINT signal.
Reimplemented from ASSA::EventHandler. Definition at line 75 of file Handlers.h. References m_graceful_quit, ASSA::SIGHAND, and trace_with_mask. 00076 { 00077 trace_with_mask("SIGINTHandler::handle_signal", SIGHAND); 00078 00079 if (signum_ == SIGINT) { 00080 m_graceful_quit = 1; 00081 return 0; 00082 } 00083 return -1; 00084 }
|
|
Reset state of the object to initial.
Reimplemented from ASSA::EventHandler. Definition at line 95 of file Handlers.h. References m_graceful_quit, ASSA::SIGHAND, and trace_with_mask. 00096 { 00097 trace_with_mask("SIGINTHandler::resetState", SIGHAND); 00098 00099 m_graceful_quit = 0; 00100 }
|
|
flag that indicates whether signal was caught.
Definition at line 62 of file Handlers.h. Referenced by graceful_quit(), handle_signal(), and resetState(). |