![]() |
Kea
1.5.0
|
Defines the callback used by IOSignal's internal timer. More...
#include <io_service_signal.h>
Inheritance diagram for isc::process::IOSignal::TimerCallback:Public Member Functions | |
| TimerCallback (IOSignalId sequence_id, IOSignalHandler handler) | |
| Constructor. More... | |
| void | operator() () |
| () Operator which serves as the timer's callback More... | |
Defines the callback used by IOSignal's internal timer.
This class stores the sequence_id of the IOSignal being sent and the IOSignalHandler to invoke when delivering the signal. The () operator is called by IOService when the timer expires. This method invokes the IOSignalHandler passing it the sequence_id.
Definition at line 142 of file io_service_signal.h.
| isc::process::IOSignal::TimerCallback::TimerCallback | ( | IOSignalId | sequence_id, |
| IOSignalHandler | handler | ||
| ) |
Constructor.
| sequence_id | sequence_id of the IOSignal to handle |
| handler | pointer to the function to handle the IOSignal |
| IOSignalError | if handler is null. |
Definition at line 41 of file io_service_signal.cc.
References isc_throw.
| void isc::process::IOSignal::TimerCallback::operator() | ( | ) |
() Operator which serves as the timer's callback
It is invoked when the timer expires and calls the handler passing in the signal.
Definition at line 50 of file io_service_signal.cc.
References isc::process::dctl_logger, and LOG_ERROR.