cb_control_(new CBControlDHCPv4()),
run_multithreaded_(run_multithreaded) {
- mutex_.reset(new std::mutex());
-
LOG_DEBUG(dhcp4_logger, DBG_DHCP4_START, DHCP4_OPEN_SOCKET)
.arg(server_port);
/// @brief Packet processing thread pool
ThreadPool pkt_thread_pool_;
- // Global mutex used to serialize packet thread pool's threads
- // on the not thread safe code and allow threads to run
- // simultaneously on the thread safe portions
- // (e.g. CqlLeaseMgr class instance).
- boost::scoped_ptr<std::mutex> mutex_;
-
// Specifies if the application will use a thread pool or will process
// received DHCP packets on the main thread.
// It is mandatory to be set on false when running the test cases.
const std::string Dhcpv6Srv::VENDOR_CLASS_PREFIX("VENDOR_CLASS_");
-Dhcpv6Srv::Dhcpv6Srv(uint16_t server_port, uint16_t client_port, bool run_multithreaded /* = false */)
+Dhcpv6Srv::Dhcpv6Srv(uint16_t server_port, uint16_t client_port,
+ bool run_multithreaded /* = false */)
: io_service_(new IOService()), server_port_(server_port),
client_port_(client_port), serverid_(), shutdown_(true),
alloc_engine_(), name_change_reqs_(),
cb_control_(new CBControlDHCPv6()),
run_multithreaded_(run_multithreaded) {
- mutex_.reset(new std::mutex());
-
LOG_DEBUG(dhcp6_logger, DBG_DHCP6_START, DHCP6_OPEN_SOCKET)
.arg(server_port);
/// @brief Packet processing thread pool
ThreadPool pkt_thread_pool_;
- // Global mutex used to serialize packet thread pool's threads
- // on the not thread safe code and allow threads to run
- // simultaneously on the thread safe portions
- // (e.g. CqlLeaseMgr class instance).
- boost::scoped_ptr<std::mutex> mutex_;
-
// Specifies if the application will use a thread pool or will process
// received DHCP packets on the main thread.
// It is mandatory to be set on false when running the test cases.