aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/contourpy/src/util.cpp
blob: d41f0edef94f5e43a8c6421998becd27a25315b2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#include "util.h"
#include <thread>

namespace contourpy {

index_t Util::get_max_threads()
{
    return static_cast<index_t>(std::thread::hardware_concurrency());
}

} // namespace contourpy