Skip to content

Commit e8d33a7

Browse files
committed
Updated README
1 parent aa630e3 commit e8d33a7

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

README.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -181,16 +181,13 @@ svr.Get("/chunked", [&](const Request& req, Response& res) {
181181

182182
### Default thread pool support
183183

184-
Set thread count to 8:
185184

186-
```cpp
187-
#define CPPHTTPLIB_THREAD_POOL_COUNT 8
188-
```
185+
`ThreadPool` is used as a default task queue, and the default thread count is set to value from `std::thread::hardware_concurrency()`.
189186

190-
Disable the default thread pool:
187+
Set thread count to 8:
191188

192189
```cpp
193-
#define CPPHTTPLIB_THREAD_POOL_COUNT 0
190+
#define CPPHTTPLIB_THREAD_POOL_COUNT 8
194191
```
195192
196193
### Override the default thread pool with yours

0 commit comments

Comments
 (0)