#include <Handlers.h>
Inheritance diagram for ASSA::SIGALRMHandler:
Public Member Functions | |
SIGALRMHandler () | |
Constructor. | |
int | handle_signal (int signum_) |
Receive ALRM signal. | |
sig_atomic_t | alarmed () |
Has alarm gone off? | |
void | resetState () |
Reset internal state. | |
Private Attributes | |
sig_atomic_t | m_alarm_flag |
Indicator whether alarm gone off yet. |
Definition at line 216 of file Handlers.h.
|
Constructor.
Definition at line 220 of file Handlers.h. References ASSA::SIGHAND, and trace_with_mask. 00220 : m_alarm_flag(0) { 00221 trace_with_mask("SIGALRMHandler::SIGALRMHandler", SIGHAND); 00222 }
|
|
Has alarm gone off?
Definition at line 237 of file Handlers.h. References m_alarm_flag. 00237 { return m_alarm_flag; }
|
|
Receive ALRM signal.
Reimplemented from ASSA::EventHandler. Definition at line 226 of file Handlers.h. References m_alarm_flag, ASSA::SIGHAND, and trace_with_mask. 00226 { 00227 trace_with_mask("SIGALRMHandler::handle_signal", SIGHAND); 00228 00229 if (signum_ == SIGALRM) { 00230 m_alarm_flag = 1; // notice that we have seen alarm 00231 return 0; 00232 } 00233 return -1; 00234 }
|
|
Reset internal state.
Reimplemented from ASSA::EventHandler. Definition at line 240 of file Handlers.h. References m_alarm_flag. 00240 { m_alarm_flag = 0; }
|
|
Indicator whether alarm gone off yet.
Definition at line 244 of file Handlers.h. Referenced by alarmed(), handle_signal(), and resetState(). |