Fixed thread cpu range for web::server::HttpConnectionHandler

This commit is contained in:
lganzzzo 2018-09-24 00:12:24 +03:00
parent 3b7df3d298
commit f777ece1c3

View File

@ -75,7 +75,7 @@ void HttpConnectionHandler::handleConnection(const std::shared_ptr<oatpp::data::
concurrency -= 1;
}
oatpp::concurrency::Thread::assignThreadToCpuRange(thread.getStdThread()->native_handle(), 0, concurrency);
oatpp::concurrency::Thread::assignThreadToCpuRange(thread.getStdThread()->native_handle(), 0, concurrency - 1);
thread.detach();
}