diff options
author | ilnurkh <ilnurkh@yandex-team.com> | 2023-10-09 23:39:40 +0300 |
---|---|---|
committer | ilnurkh <ilnurkh@yandex-team.com> | 2023-10-09 23:57:14 +0300 |
commit | e601ca03f859335d57ecff2e5aa6af234b6052ed (patch) | |
tree | de519a847e58a1b3993fcbfe05ff44cc946a3e24 /library/cpp/unified_agent_client/async_joiner.h | |
parent | bbf2b6878af3854815a2c0ecb07a687071787639 (diff) | |
download | ydb-e601ca03f859335d57ecff2e5aa6af234b6052ed.tar.gz |
Y_VERIFY->Y_ABORT_UNLESS at ^l
https://clubs.at.yandex-team.ru/arcadia/29404
Diffstat (limited to 'library/cpp/unified_agent_client/async_joiner.h')
-rw-r--r-- | library/cpp/unified_agent_client/async_joiner.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/cpp/unified_agent_client/async_joiner.h b/library/cpp/unified_agent_client/async_joiner.h index ce392ef7bc..23494cc6f7 100644 --- a/library/cpp/unified_agent_client/async_joiner.h +++ b/library/cpp/unified_agent_client/async_joiner.h @@ -13,13 +13,13 @@ namespace NUnifiedAgent { inline i64 Ref(i64 count = 1) noexcept { const auto result = Refs.fetch_add(count); - Y_VERIFY(result >= 1, "already joined"); + Y_ABORT_UNLESS(result >= 1, "already joined"); return result; } inline i64 UnRef() noexcept { const auto prev = Refs.fetch_sub(1); - Y_VERIFY(prev >= 1); + Y_ABORT_UNLESS(prev >= 1); if (prev == 1) { auto p = Promise; p.SetValue(); |