We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 180241d commit 3393a05Copy full SHA for 3393a05
ThreadPool.hpp
@@ -15,7 +15,7 @@
15
class ThreadPool {
16
public:
17
// the constructor just launches some amount of workers
18
- ThreadPool(size_t threads_n) : stop(false)
+ ThreadPool(size_t threads_n = std::thread::hardware_concurrency()) : stop(false)
19
{
20
this->workers.reserve(threads_n);
21
for(; threads_n; --threads_n)
0 commit comments