#include <Handlers.h>

Public Member Functions | |
| SIGUSR2Handler () | |
| Constructor. | |
| int | handle_signal (int signum_) |
| Catch USR2 signal and increment count. | |
| sig_atomic_t | received_count () const |
| Report count of received signals. | |
| void | resetState () |
| Set received signals count back to 0. | |
Private Attributes | |
| sig_atomic_t | m_count |
| Received signals count. | |
Definition at line 150 of file Handlers.h.
| ASSA::SIGUSR2Handler::SIGUSR2Handler | ( | ) | [inline] |
Constructor.
Definition at line 155 of file Handlers.h.
References ASSA::SIGHAND, and trace_with_mask.
00155 : m_count(0) { 00156 trace_with_mask("SIGUSR2Handler::SIGUSR2Handler", SIGHAND); 00157 }
| int ASSA::SIGUSR2Handler::handle_signal | ( | int | signum_ | ) | [inline, virtual] |
Catch USR2 signal and increment count.
Reimplemented from ASSA::EventHandler.
Definition at line 161 of file Handlers.h.
References DL, ASSA::SIGHAND, ASSA::TRACE, and trace_with_mask.
00161 { 00162 trace_with_mask("SIGUSR2Handler::handle_signal()", SIGHAND); 00163 00164 if (signum_ == SIGUSR2) { 00165 m_count++; 00166 DL((TRACE, "signal count = %d\n", m_count)); 00167 return 0; 00168 } 00169 return -1; 00170 }
| sig_atomic_t ASSA::SIGUSR2Handler::received_count | ( | ) | const [inline] |
Report count of received signals.
Definition at line 174 of file Handlers.h.
00174 { return m_count; }
| void ASSA::SIGUSR2Handler::resetState | ( | void | ) | [inline, virtual] |
Set received signals count back to 0.
Reimplemented from ASSA::EventHandler.
Definition at line 178 of file Handlers.h.
00178 { m_count = 0; }
sig_atomic_t ASSA::SIGUSR2Handler::m_count [private] |
1.5.5