}
// destroying the thread pool
- if (MultiThreadingUtil::threadCount()) {
+ if (MultiThreadingMgr::instance().getMode()) {
MultiThreadingMgr::instance().getPktThreadPool().reset();
}
.arg(query->getLabel());
return;
} else {
- if (MultiThreadingUtil::threadCount()) {
+ if (MultiThreadingMgr::instance().getMode()) {
typedef function<void()> CallBack;
boost::shared_ptr<CallBack> call_back =
boost::make_shared<CallBack>(std::bind(&Dhcpv4Srv::processPacketAndSendResponseNoThrow,
// library unparks the packet.
HooksManager::park("leases4_committed", query,
[this, callout_handle, query, rsp]() mutable {
- if (MultiThreadingUtil::threadCount()) {
+ if (MultiThreadingMgr::instance().getMode()) {
typedef function<void()> CallBack;
boost::shared_ptr<CallBack> call_back =
boost::make_shared<CallBack>(std::bind(&Dhcpv4Srv::sendResponseNoThrow,
}
// destroying the thread pool
- if (MultiThreadingUtil::threadCount()) {
+ if (MultiThreadingMgr::instance().getMode()) {
MultiThreadingMgr::instance().getPktThreadPool().reset();
}
.arg(query->getLabel());
return;
} else {
- if (MultiThreadingUtil::threadCount()) {
+ if (MultiThreadingMgr::instance().getMode()) {
typedef function<void()> CallBack;
boost::shared_ptr<CallBack> call_back =
boost::make_shared<CallBack>(std::bind(&Dhcpv6Srv::processPacketAndSendResponseNoThrow,
// library unparks the packet.
HooksManager::park("leases6_committed", query,
[this, callout_handle, query, rsp]() mutable {
- if (MultiThreadingUtil::threadCount()) {
+ if (MultiThreadingMgr::instance().getMode()) {
typedef function<void()> CallBack;
boost::shared_ptr<CallBack> call_back =
boost::make_shared<CallBack>(std::bind(&Dhcpv6Srv::sendResponseNoThrow,