aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/threading/poor_man_openmp
diff options
context:
space:
mode:
authorAndrey Khalyavin <halyavin@gmail.com>2022-02-10 16:46:29 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:29 +0300
commitf773626848a7c7456803654292e716b83d69cc12 (patch)
treedb052dfcf9134f492bdbb962cb6c16cea58e1ed3 /library/cpp/threading/poor_man_openmp
parentf43ab775d197d300eb67bd4497632b909cd7c2a5 (diff)
downloadydb-f773626848a7c7456803654292e716b83d69cc12.tar.gz
Restoring authorship annotation for Andrey Khalyavin <halyavin@gmail.com>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/threading/poor_man_openmp')
-rw-r--r--library/cpp/threading/poor_man_openmp/thread_helper.h8
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 0ecee0590b..182712f61d 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);