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 4c88f0d commit 300f027Copy full SHA for 300f027
include/svs/lib/threads/threadpool.h
@@ -297,7 +297,7 @@ class OMPThreadPool {
297
public:
298
explicit OMPThreadPool(size_t num_threads) { omp_set_num_threads(num_threads); }
299
300
- size_t size() const { return omp_get_num_threads(); }
+ size_t size() const { return omp_get_max_threads(); }
301
302
void parallel_for(std::function<void(size_t)> f, size_t n) {
303
#pragma omp parallel for
0 commit comments