From b944f942ee842759d12f7d76c95eee37208dcfcc Mon Sep 17 00:00:00 2001 From: Florian Albrechtskirchinger Date: Thu, 20 Feb 2025 18:59:38 +0100 Subject: [PATCH] Correct default thread pool size in README.md (#2077) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a1416cc..fcdae7e 100644 --- a/README.md +++ b/README.md @@ -462,7 +462,7 @@ Please see [Server example](https://github.com/yhirose/cpp-httplib/blob/master/e ### Default thread pool support -`ThreadPool` is used as a **default** task queue, and the default thread count is 8, or `std::thread::hardware_concurrency()`. You can change it with `CPPHTTPLIB_THREAD_POOL_COUNT`. +`ThreadPool` is used as the **default** task queue, with a default thread count of 8 or `std::thread::hardware_concurrency() - 1`, whichever is greater. You can change it with `CPPHTTPLIB_THREAD_POOL_COUNT`. If you want to set the thread count at runtime, there is no convenient way... But here is how.