mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-15 17:28:29 +00:00
Updated README
This commit is contained in:
parent
aa630e3062
commit
e8d33a77e0
1 changed files with 3 additions and 6 deletions
|
@ -181,18 +181,15 @@ svr.Get("/chunked", [&](const Request& req, Response& res) {
|
||||||
|
|
||||||
### Default thread pool support
|
### 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:
|
Set thread count to 8:
|
||||||
|
|
||||||
```cpp
|
```cpp
|
||||||
#define CPPHTTPLIB_THREAD_POOL_COUNT 8
|
#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
|
### Override the default thread pool with yours
|
||||||
|
|
||||||
```cpp
|
```cpp
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue