diff options
author | gulin <gulin@yandex-team.ru> | 2022-02-10 16:47:32 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:32 +0300 |
commit | 7199613d295246a07c2f7b331fbb3128936039dc (patch) | |
tree | c0748b5dcbade83af788c0abfa89c0383d6b779c /library/cpp/threading/local_executor/local_executor.h | |
parent | c807aae441c17fc7f577c35757a4b6e0bd909802 (diff) | |
download | ydb-7199613d295246a07c2f7b331fbb3128936039dc.tar.gz |
Restoring authorship annotation for <gulin@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/threading/local_executor/local_executor.h')
-rw-r--r-- | library/cpp/threading/local_executor/local_executor.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/library/cpp/threading/local_executor/local_executor.h b/library/cpp/threading/local_executor/local_executor.h index 0fdd20454b..c1c824f67c 100644 --- a/library/cpp/threading/local_executor/local_executor.h +++ b/library/cpp/threading/local_executor/local_executor.h @@ -1,5 +1,5 @@ -#pragma once - +#pragma once + #include <library/cpp/threading/future/future.h> #include <util/generic/cast.h> @@ -10,7 +10,7 @@ #include <util/generic/ymath.h> #include <functional> - + namespace NPar { struct ILocallyExecutable : virtual public TThrRefBase { // Must be implemented by the end user to define job that will be processed by one of @@ -20,7 +20,7 @@ namespace NPar { // some dummy value, e.g. `0`. virtual void LocalExec(int id) = 0; }; - + // Alternative and simpler way of describing a job for executor. Function argument has the // same meaning as `id` in `ILocallyExecutable::LocalExec`. // @@ -196,8 +196,8 @@ namespace NPar { } return false; } - }; - + }; + // `TLocalExecutor` provides facilities for easy parallelization of existing code and cycles. // // Examples: @@ -291,4 +291,4 @@ namespace NPar { params.SetBlockCountToThreadCount(); LocalExecutor().ExecRange(std::forward<TBody>(body), params, 0); } -} +} |