aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/threading
diff options
context:
space:
mode:
authorAndrey Khalyavin <halyavin@gmail.com>2022-02-10 16:46:30 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:30 +0300
commit4b839d0704ee9be1dabb0310a1f03af24963637b (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /library/cpp/threading
parentf773626848a7c7456803654292e716b83d69cc12 (diff)
downloadydb-4b839d0704ee9be1dabb0310a1f03af24963637b.tar.gz
Restoring authorship annotation for Andrey Khalyavin <halyavin@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/threading')
-rw-r--r--library/cpp/threading/light_rw_lock/lightrwlock.h2
-rw-r--r--library/cpp/threading/poor_man_openmp/thread_helper.h8
2 files changed, 5 insertions, 5 deletions
diff --git a/library/cpp/threading/light_rw_lock/lightrwlock.h b/library/cpp/threading/light_rw_lock/lightrwlock.h
index c995f5c752..931a1817bc 100644
--- a/library/cpp/threading/light_rw_lock/lightrwlock.h
+++ b/library/cpp/threading/light_rw_lock/lightrwlock.h
@@ -29,7 +29,7 @@
*/
#include <linux/futex.h>
-#include <unistd.h>
+#include <unistd.h>
#include <sys/syscall.h>
#include <errno.h>
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);