| 3 | static int HTTP_SERVER_THREAD_POOL_COUNT = 0; |
| 4 | |
| 5 | int getHttpLibThreadPoolCount() { |
| 6 | int defalutCount = (std::max)(8u, std::thread::hardware_concurrency() > 0 ? std::thread::hardware_concurrency() - 1 : 0); |
| 7 | return (std::max)(defalutCount, HTTP_SERVER_THREAD_POOL_COUNT); |
| 8 | } |
| 9 | |
| 10 | void setHttpLibThreadPoolCount(int nCount) { |
| 11 | HTTP_SERVER_THREAD_POOL_COUNT = nCount; |
nothing calls this directly
no outgoing calls
no test coverage detected