diff options
author | a-romanov <a-romanov@yandex-team.ru> | 2022-02-10 16:48:11 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:48:11 +0300 |
commit | 0f4c5d1e8c0672bf0a1f2f2d8acac5ba24772435 (patch) | |
tree | b222e5ac2e2e98872661c51ccceee5da0d291e13 /library/cpp/threading/poor_man_openmp | |
parent | aa2986a34bde73b2cdcea5080c4443b7cf2ba686 (diff) | |
download | ydb-0f4c5d1e8c0672bf0a1f2f2d8acac5ba24772435.tar.gz |
Restoring authorship annotation for <a-romanov@yandex-team.ru>. 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 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/cpp/threading/poor_man_openmp/thread_helper.h b/library/cpp/threading/poor_man_openmp/thread_helper.h index a53727e088..0ecee0590b 100644 --- a/library/cpp/threading/poor_man_openmp/thread_helper.h +++ b/library/cpp/threading/poor_man_openmp/thread_helper.h @@ -45,7 +45,7 @@ namespace NYmp { } template <typename T> - inline void ParallelForStaticChunk(T begin, T end, size_t chunkSize, std::function<void(T)> func) { + inline void ParallelForStaticChunk(T begin, T end, size_t chunkSize, std::function<void(T)> func) { chunkSize = Max<size_t>(chunkSize, 1); size_t threadCount = TMtpQueueHelper::Instance().GetThreadCount(); @@ -96,7 +96,7 @@ namespace NYmp { } template <typename T> - inline void ParallelForStaticAutoChunk(T begin, T end, std::function<void(T)> func) { + inline void ParallelForStaticAutoChunk(T begin, T end, std::function<void(T)> func) { const size_t taskSize = end - begin; const size_t threadCount = TMtpQueueHelper::Instance().GetThreadCount(); |