Code format
This commit is contained in:
parent
f6db19959f
commit
b557ac9328
@ -51,7 +51,10 @@
|
|||||||
#ifndef CPPHTTPLIB_THREAD_POOL_COUNT
|
#ifndef CPPHTTPLIB_THREAD_POOL_COUNT
|
||||||
// if hardware_concurrency() outputs 0 we still wants to use threads for this.
|
// if hardware_concurrency() outputs 0 we still wants to use threads for this.
|
||||||
// -1 because we have one thread already in the main function.
|
// -1 because we have one thread already in the main function.
|
||||||
#define CPPHTTPLIB_THREAD_POOL_COUNT std::thread::hardware_concurrency() ? std::thread::hardware_concurrency()-1 : 2
|
#define CPPHTTPLIB_THREAD_POOL_COUNT \
|
||||||
|
(std::thread::hardware_concurrency() \
|
||||||
|
? std::thread::hardware_concurrency() - 1 \
|
||||||
|
: 2)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user