2
0
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:
Francis Dupont
2020-04-22 15:29:02 +02:00
parent 59d19f5c01
commit ebedc6ee68

View File

@@ -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);