From e8d33a77e0ad46a28be9f4833215a5f4100df417 Mon Sep 17 00:00:00 2001 From: yhirose Date: Thu, 2 Jan 2020 13:08:40 -0500 Subject: [PATCH] Updated README --- README.md | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 8872e7b..d0800b4 100644 --- a/README.md +++ b/README.md @@ -181,18 +181,15 @@ svr.Get("/chunked", [&](const Request& req, Response& res) { ### Default thread pool support + +`ThreadPool` is used as a default task queue, and the default thread count is set to value from `std::thread::hardware_concurrency()`. + Set thread count to 8: ```cpp #define CPPHTTPLIB_THREAD_POOL_COUNT 8 ``` -Disable the default thread pool: - -```cpp -#define CPPHTTPLIB_THREAD_POOL_COUNT 0 -``` - ### Override the default thread pool with yours ```cpp