diff options
author | Andrey Khalyavin <halyavin@gmail.com> | 2022-02-10 16:46:30 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:30 +0300 |
commit | 4b839d0704ee9be1dabb0310a1f03af24963637b (patch) | |
tree | 1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /library/cpp/threading/poor_man_openmp | |
parent | f773626848a7c7456803654292e716b83d69cc12 (diff) | |
download | ydb-4b839d0704ee9be1dabb0310a1f03af24963637b.tar.gz |
Restoring authorship annotation for Andrey Khalyavin <halyavin@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/threading/poor_man_openmp')
-rw-r--r-- | library/cpp/threading/poor_man_openmp/thread_helper.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/library/cpp/threading/poor_man_openmp/thread_helper.h b/library/cpp/threading/poor_man_openmp/thread_helper.h index 182712f61d..0ecee0590b 100644 --- a/library/cpp/threading/poor_man_openmp/thread_helper.h +++ b/library/cpp/threading/poor_man_openmp/thread_helper.h @@ -9,7 +9,7 @@ #include <util/system/mutex.h> #include <util/stream/output.h> -#include <functional> +#include <functional> #include <cstdlib> class TMtpQueueHelper { @@ -40,10 +40,10 @@ namespace NYmp { TMtpQueueHelper::Instance().SetThreadCount(threads); } - inline size_t GetThreadCount() { + inline size_t GetThreadCount() { return TMtpQueueHelper::Instance().GetThreadCount(); - } - + } + template <typename T> inline void ParallelForStaticChunk(T begin, T end, size_t chunkSize, std::function<void(T)> func) { chunkSize = Max<size_t>(chunkSize, 1); |