mirror of
https://github.com/oatpp/oatpp.git
synced 2025-04-12 18:50:22 +08:00
Fixed thread cpu range for web::server::HttpConnectionHandler
This commit is contained in:
parent
3b7df3d298
commit
f777ece1c3
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user