This commit is contained in:
yhirose 2020-05-10 14:18:03 -04:00
parent eb1fe5b191
commit 5982b5c360

View file

@ -50,7 +50,9 @@
#ifndef CPPHTTPLIB_THREAD_POOL_COUNT #ifndef CPPHTTPLIB_THREAD_POOL_COUNT
#define 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 #endif
/* /*