mirror of
https://github.com/yhirose/cpp-httplib
synced 2024-11-21 06:26:02 -07:00
Fix #471
This commit is contained in:
parent
eb1fe5b191
commit
5982b5c360
1 changed files with 3 additions and 1 deletions
|
@ -50,7 +50,9 @@
|
|||
|
||||
#ifndef CPPHTTPLIB_THREAD_POOL_COUNT
|
||||
#define CPPHTTPLIB_THREAD_POOL_COUNT \
|
||||
((std::max)(8u, std::thread::hardware_concurrency() - 1))
|
||||
((std::max)(8u, std::thread::hardware_concurrency() > 0 \
|
||||
? std::thread::hardware_concurrency() - 1 \
|
||||
: 0))
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue