#include <Handlers.h>
Inheritance diagram for ASSA::SIGUSR1Handler:
Public Member Functions | |
SIGUSR1Handler () | |
Constructor. | |
int | handle_signal (int signum_) |
Catch USR1 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. |
Handle SIGUSR1 signal.
Definition at line 107 of file Handlers.h.
|
Constructor.
Definition at line 112 of file Handlers.h. References ASSA::SIGHAND, and trace_with_mask. 00112 : m_count(0) { 00113 trace_with_mask("SIGUSR1Handler::SIGUSR1Handler", SIGHAND); 00114 }
|
|
Catch USR1 signal and increment count.
Reimplemented from ASSA::EventHandler. Definition at line 118 of file Handlers.h. References DL, m_count, ASSA::SIGHAND, ASSA::TRACE, and trace_with_mask. 00118 { 00119 trace_with_mask("SIGUSR1Handler::handle_signal()", SIGHAND); 00120 00121 if (signum_ == SIGUSR1) { 00122 m_count++; 00123 DL((TRACE, "signal count = %d\n", m_count)); 00124 return 0; 00125 } 00126 return -1; 00127 }
|
|
Report count of received signals.
Definition at line 131 of file Handlers.h. References m_count. 00131 { return m_count; }
|
|
Set received signals count back to 0.
Reimplemented from ASSA::EventHandler. Definition at line 135 of file Handlers.h. References m_count. 00135 { m_count = 0; }
|
|
Received signals count.
Definition at line 139 of file Handlers.h. Referenced by handle_signal(), received_count(), and resetState(). |