diff options
author | Vasily Ershov <vasilij.ershov@gmail.com> | 2022-02-10 16:47:00 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:00 +0300 |
commit | 057228894caf824ce9d5b05681106304d90aa800 (patch) | |
tree | 97c6a02523ad9f2c8e211feffa448debdf1433c3 | |
parent | 6421a2a7919e21e661ad672f2b9e57c5194b8487 (diff) | |
download | ydb-057228894caf824ce9d5b05681106304d90aa800.tar.gz |
Restoring authorship annotation for Vasily Ershov <vasilij.ershov@gmail.com>. Commit 1 of 2.
-rw-r--r-- | contrib/libs/cxxsupp/libcxx/include/map | 2 | ||||
-rw-r--r-- | contrib/libs/libiconv/translit.def | 12 | ||||
-rw-r--r-- | contrib/libs/ya.make | 2 | ||||
-rw-r--r-- | library/cpp/threading/local_executor/local_executor.h | 32 |
4 files changed, 24 insertions, 24 deletions
diff --git a/contrib/libs/cxxsupp/libcxx/include/map b/contrib/libs/cxxsupp/libcxx/include/map index c78a7ee31a..6869010686 100644 --- a/contrib/libs/cxxsupp/libcxx/include/map +++ b/contrib/libs/cxxsupp/libcxx/include/map @@ -1598,7 +1598,7 @@ map<_Key, _Tp, _Compare, _Allocator>::at(const key_type& __k) { __parent_pointer __parent; __node_base_pointer& __child = __tree_.__find_equal(__parent, __k); - if (__child == nullptr) + if (__child == nullptr) __throw_out_of_range("map::at: key not found"); return static_cast<__node_pointer>(__child)->__value_.__get_value().second; } diff --git a/contrib/libs/libiconv/translit.def b/contrib/libs/libiconv/translit.def index f872e1d6fc..305f6a1677 100644 --- a/contrib/libs/libiconv/translit.def +++ b/contrib/libs/libiconv/translit.def @@ -545,10 +545,10 @@ 2015 - # HORIZONTAL BAR 2016 # DOUBLE VERTICAL LINE 2017 # DOUBLE LOW LINE -2018 ' # LEFT MT_SINGLE QUOTATION MARK -2019 ' # RIGHT MT_SINGLE QUOTATION MARK -201A , # MT_SINGLE LOW-9 QUOTATION MARK -201B ' # MT_SINGLE HIGH-REVERSED-9 QUOTATION MARK +2018 ' # LEFT MT_SINGLE QUOTATION MARK +2019 ' # RIGHT MT_SINGLE QUOTATION MARK +201A , # MT_SINGLE LOW-9 QUOTATION MARK +201B ' # MT_SINGLE HIGH-REVERSED-9 QUOTATION MARK 201C " # LEFT DOUBLE QUOTATION MARK 201D " # RIGHT DOUBLE QUOTATION MARK 201E " # DOUBLE LOW-9 QUOTATION MARK @@ -565,8 +565,8 @@ 2034 ´´´ # TRIPLE PRIME 2036 ‵‵ # REVERSED DOUBLE PRIME 2037 ‵‵‵ # REVERSED TRIPLE PRIME -2039 < # MT_SINGLE LEFT-POINTING ANGLE QUOTATION MARK -203A > # MT_SINGLE RIGHT-POINTING ANGLE QUOTATION MARK +2039 < # MT_SINGLE LEFT-POINTING ANGLE QUOTATION MARK +203A > # MT_SINGLE RIGHT-POINTING ANGLE QUOTATION MARK 203C !! # DOUBLE EXCLAMATION MARK 203E # OVERLINE 2044 / # FRACTION SLASH diff --git a/contrib/libs/ya.make b/contrib/libs/ya.make index 9c4640fdcf..784e51735a 100644 --- a/contrib/libs/ya.make +++ b/contrib/libs/ya.make @@ -80,7 +80,7 @@ RECURSE( freetype fuse fxdiv - gamma_function_apache_math_port + gamma_function_apache_math_port gdal gdal/apps gdk-pixbuf diff --git a/library/cpp/threading/local_executor/local_executor.h b/library/cpp/threading/local_executor/local_executor.h index c1c824f67c..8376a3cc95 100644 --- a/library/cpp/threading/local_executor/local_executor.h +++ b/library/cpp/threading/local_executor/local_executor.h @@ -149,8 +149,8 @@ namespace NPar { template <typename TBody> inline void ExecRange(TBody&& body, TExecRangeParams params, int flags) { if (TryExecRangeSequentially(body, params.FirstId, params.LastId, flags)) { - return; - } + return; + } if (params.GetBlockEqualToThreads()) { params.SetBlockCount(GetThreadCount() + ((flags & WAIT_COMPLETE) != 0)); // ThreadCount or ThreadCount+1 depending on WaitFlag } @@ -272,23 +272,23 @@ namespace NPar { static inline TLocalExecutor& LocalExecutor() { return *Singleton<TLocalExecutor>(); } - - template <typename TBody> + + template <typename TBody> inline void ParallelFor(ILocalExecutor& executor, ui32 from, ui32 to, TBody&& body) { ILocalExecutor::TExecRangeParams params(from, to); - params.SetBlockCountToThreadCount(); + params.SetBlockCountToThreadCount(); executor.ExecRange(std::forward<TBody>(body), params, TLocalExecutor::WAIT_COMPLETE); - } - - template <typename TBody> - inline void ParallelFor(ui32 from, ui32 to, TBody&& body) { - ParallelFor(LocalExecutor(), from, to, std::forward<TBody>(body)); - } - - template <typename TBody> - inline void AsyncParallelFor(ui32 from, ui32 to, TBody&& body) { + } + + template <typename TBody> + inline void ParallelFor(ui32 from, ui32 to, TBody&& body) { + ParallelFor(LocalExecutor(), from, to, std::forward<TBody>(body)); + } + + template <typename TBody> + inline void AsyncParallelFor(ui32 from, ui32 to, TBody&& body) { ILocalExecutor::TExecRangeParams params(from, to); - params.SetBlockCountToThreadCount(); + params.SetBlockCountToThreadCount(); LocalExecutor().ExecRange(std::forward<TBody>(body), params, 0); - } + } } |