 |
Kea
1.5.0
|
Go to the documentation of this file.
7 #ifndef IO_SERVICE_SIGNAL_H
8 #define IO_SERVICE_SIGNAL_H
126 return (sequence_id_);
259 #endif // IO_SERVICE_SIGNAL_H
IOSignalId getSequenceId() const
Gets the IOSignal's sequence_id.
void clear()
Erases the contents of the queue.
The IOService class is a wrapper for the ASIO io_service class.
boost::shared_ptr< IOSignalQueue > IOSignalQueuePtr
Defines a pointer to an IOSignalQueue.
boost::shared_ptr< IOSignal > IOSignalPtr
Defines a pointer to an IOSignal.
IOSignal(asiolink::IOService &io_service, int signum, IOSignalHandler handler)
Constructor.
~IOSignalQueue()
Destructor.
int getSignum() const
Gets the OS signal value this IOSignal represents.
This is a base class for exceptions thrown from the DNS library module.
Defines the logger used by the top-level component of kea-dhcp-ddns.
uint64_t IOSignalId
Defines a unique identifier type for IOSignal.
virtual const char * what() const
Returns a C-style character string of the cause of the exception.
TimerCallback(IOSignalId sequence_id, IOSignalHandler handler)
Constructor.
boost::shared_ptr< isc::asiolink::IntervalTimer > IntervalTimerPtr
Creates and manages IOSignals.
IOSignalPtr popSignal(IOSignalId sequence_id)
Removes an IOSignal from the map and returns it.
static IOSignalId nextSequenceId()
Static method for generating IOSignal sequence_ids.
boost::shared_ptr< IOService > IOServicePtr
Defines a smart pointer to an IOService instance.
Exception thrown if IOSignal encounters an error.
boost::function< void(IOSignalId sequence_id)> IOSignalHandler
Defines a handler function for an IOSignal.
Defines the callback used by IOSignal's internal timer.
IOSignalError(const char *file, size_t line, const char *what)
std::map< IOSignalId, IOSignalPtr > IOSignalMap
Defines a map of IOSignalPtr keyed by id.
void operator()()
() Operator which serves as the timer's callback
IOSignalQueue(asiolink::IOServicePtr &io_service)
Constructor.
IOSignalId pushSignal(int signum, IOSignalHandler handler)
Creates an IOSignal.
Implements an asynchronous "signal" for IOService driven processing.