#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 45 of file Handlers.h.
|
constructor
Definition at line 72 of file Handlers.h. References ASSA::SIGHAND, and trace_with_mask. 00073 : m_graceful_quit (0) 00074 { 00075 trace_with_mask("SIGINTHandler::SIGINTHandler", SIGHAND); 00076 }
|
|
Indicates whether graceful quit signal has been raised by the signal handler.
Definition at line 93 of file Handlers.h. References m_graceful_quit. 00094 { 00095 return m_graceful_quit; 00096 }
|
|
Receive SIGINT signal.
Reimplemented from ASSA::EventHandler. Definition at line 80 of file Handlers.h. References m_graceful_quit, ASSA::SIGHAND, and trace_with_mask. 00081 { 00082 trace_with_mask("SIGINTHandler::handle_signal", SIGHAND); 00083 00084 if (signum_ == SIGINT) { 00085 m_graceful_quit = 1; 00086 return 0; 00087 } 00088 return -1; 00089 }
|
|
Reset state of the object to initial.
Reimplemented from ASSA::EventHandler. Definition at line 100 of file Handlers.h. References m_graceful_quit, ASSA::SIGHAND, and trace_with_mask. 00101 { 00102 trace_with_mask("SIGINTHandler::resetState", SIGHAND); 00103 00104 m_graceful_quit = 0; 00105 }
|
|
flag that indicates whether signal was caught.
Definition at line 67 of file Handlers.h. Referenced by graceful_quit(), handle_signal(), and resetState(). |