MCPcopy Create free account
hub / github.com/aixed/WeChat-Hook / getHttpLibThreadPoolCount

Function getHttpLibThreadPoolCount

src/httplib_core.cpp:5–8  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3static int HTTP_SERVER_THREAD_POOL_COUNT = 0;
4
5int 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
10void setHttpLibThreadPoolCount(int nCount) {
11 HTTP_SERVER_THREAD_POOL_COUNT = nCount;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected