diff options
author | shumkovnd <shumkovnd@yandex-team.com> | 2023-11-10 14:39:34 +0300 |
---|---|---|
committer | shumkovnd <shumkovnd@yandex-team.com> | 2023-11-10 16:42:24 +0300 |
commit | 77eb2d3fdcec5c978c64e025ced2764c57c00285 (patch) | |
tree | c51edb0748ca8d4a08d7c7323312c27ba1a8b79a /contrib/python/contourpy/src/util.cpp | |
parent | dd6d20cadb65582270ac23f4b3b14ae189704b9d (diff) | |
download | ydb-77eb2d3fdcec5c978c64e025ced2764c57c00285.tar.gz |
KIKIMR-19287: add task_stats_drawing script
Diffstat (limited to 'contrib/python/contourpy/src/util.cpp')
-rw-r--r-- | contrib/python/contourpy/src/util.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/contrib/python/contourpy/src/util.cpp b/contrib/python/contourpy/src/util.cpp new file mode 100644 index 0000000000..d41f0edef9 --- /dev/null +++ b/contrib/python/contourpy/src/util.cpp @@ -0,0 +1,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 |