diff options
author | ilyzhin <ilyzhin@yandex-team.ru> | 2022-02-10 16:51:00 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:51:00 +0300 |
commit | 413ada2a3233c0cdd3864d63aa7d24f4280c7bdd (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp | |
parent | 69f832f0edfcdb994d569f8529b2bd26aa0742a4 (diff) | |
download | ydb-413ada2a3233c0cdd3864d63aa7d24f4280c7bdd.tar.gz |
Restoring authorship annotation for <ilyzhin@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp')
-rw-r--r-- | library/cpp/threading/local_executor/local_executor.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/library/cpp/threading/local_executor/local_executor.h b/library/cpp/threading/local_executor/local_executor.h index df0b8333fc..c1c824f67c 100644 --- a/library/cpp/threading/local_executor/local_executor.h +++ b/library/cpp/threading/local_executor/local_executor.h @@ -75,9 +75,9 @@ namespace NPar { // template <typename TBlockCount> TExecRangeParams& SetBlockCount(TBlockCount blockCount) { - Y_ASSERT(SafeIntegerCast<int>(blockCount) > 0 || FirstId == LastId); - BlockSize = FirstId == LastId ? 0 : CeilDiv(LastId - FirstId, SafeIntegerCast<int>(blockCount)); - BlockCount = BlockSize == 0 ? 0 : CeilDiv(LastId - FirstId, BlockSize); + Y_ASSERT(SafeIntegerCast<int>(blockCount) > 0 || FirstId == LastId); + BlockSize = FirstId == LastId ? 0 : CeilDiv(LastId - FirstId, SafeIntegerCast<int>(blockCount)); + BlockCount = BlockSize == 0 ? 0 : CeilDiv(LastId - FirstId, BlockSize); BlockEqualToThreads = false; return *this; } @@ -86,9 +86,9 @@ namespace NPar { // template <typename TBlockSize> TExecRangeParams& SetBlockSize(TBlockSize blockSize) { - Y_ASSERT(SafeIntegerCast<int>(blockSize) > 0 || FirstId == LastId); + Y_ASSERT(SafeIntegerCast<int>(blockSize) > 0 || FirstId == LastId); BlockSize = SafeIntegerCast<int>(blockSize); - BlockCount = BlockSize == 0 ? 0 : CeilDiv(LastId - FirstId, BlockSize); + BlockCount = BlockSize == 0 ? 0 : CeilDiv(LastId - FirstId, BlockSize); BlockEqualToThreads = false; return *this; } |