mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-09-02 06:55:16 +00:00
[#1096] Addressed some comments
This commit is contained in:
@@ -12,6 +12,7 @@
|
|||||||
|
|
||||||
#include <boost/bind.hpp>
|
#include <boost/bind.hpp>
|
||||||
#include <boost/enable_shared_from_this.hpp>
|
#include <boost/enable_shared_from_this.hpp>
|
||||||
|
#include <boost/noncopyable.hpp>
|
||||||
#include <boost/asio/signal_set.hpp>
|
#include <boost/asio/signal_set.hpp>
|
||||||
|
|
||||||
using namespace isc::asiolink;
|
using namespace isc::asiolink;
|
||||||
@@ -21,18 +22,15 @@ namespace process {
|
|||||||
|
|
||||||
/// Implementation class of IOSignalSet.
|
/// Implementation class of IOSignalSet.
|
||||||
class IOSignalSetImpl :
|
class IOSignalSetImpl :
|
||||||
public boost::enable_shared_from_this<IOSignalSetImpl>
|
public boost::enable_shared_from_this<IOSignalSetImpl>,
|
||||||
|
public boost::noncopyable
|
||||||
{
|
{
|
||||||
private:
|
|
||||||
// Prohibit copy.
|
|
||||||
IOSignalSetImpl(const IOSignalSetImpl& source);
|
|
||||||
IOSignalSetImpl& operator=(const IOSignalSetImpl& source);
|
|
||||||
public:
|
public:
|
||||||
IOSignalSetImpl(IOServicePtr io_service, IOSignalHandler handler);
|
IOSignalSetImpl(IOServicePtr io_service, IOSignalHandler handler);
|
||||||
~IOSignalSetImpl(){}
|
~IOSignalSetImpl(){}
|
||||||
void install();
|
void install();
|
||||||
void add(int signum);
|
void add(int signum);
|
||||||
private:
|
private:
|
||||||
boost::asio::signal_set signal_set_;
|
boost::asio::signal_set signal_set_;
|
||||||
IOSignalHandler handler_;
|
IOSignalHandler handler_;
|
||||||
void callback(const boost::system::error_code& ec, int signum);
|
void callback(const boost::system::error_code& ec, int signum);
|
||||||
|
Reference in New Issue
Block a user