aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/messagebus/futex_like.cpp
diff options
context:
space:
mode:
authorilnurkh <ilnurkh@yandex-team.com>2023-10-09 23:39:40 +0300
committerilnurkh <ilnurkh@yandex-team.com>2023-10-09 23:57:14 +0300
commite601ca03f859335d57ecff2e5aa6af234b6052ed (patch)
treede519a847e58a1b3993fcbfe05ff44cc946a3e24 /library/cpp/messagebus/futex_like.cpp
parentbbf2b6878af3854815a2c0ecb07a687071787639 (diff)
downloadydb-e601ca03f859335d57ecff2e5aa6af234b6052ed.tar.gz
Y_VERIFY->Y_ABORT_UNLESS at ^l
https://clubs.at.yandex-team.ru/arcadia/29404
Diffstat (limited to 'library/cpp/messagebus/futex_like.cpp')
-rw-r--r--library/cpp/messagebus/futex_like.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/cpp/messagebus/futex_like.cpp b/library/cpp/messagebus/futex_like.cpp
index 7f965126db8..71998065a64 100644
--- a/library/cpp/messagebus/futex_like.cpp
+++ b/library/cpp/messagebus/futex_like.cpp
@@ -31,7 +31,7 @@ void TFutexLike::Wake(size_t count) {
count = Max<int>();
}
int r = futex(&Value, FUTEX_WAKE, count, nullptr, nullptr, 0);
- Y_VERIFY(r >= 0, "futex_wake failed: %s", strerror(errno));
+ Y_ABORT_UNLESS(r >= 0, "futex_wake failed: %s", strerror(errno));
#else
TGuard<TMutex> guard(Mutex);
if (count == 1) {
@@ -45,7 +45,7 @@ void TFutexLike::Wake(size_t count) {
void TFutexLike::Wait(int expected) {
#ifdef _linux_
int r = futex(&Value, FUTEX_WAIT, expected, nullptr, nullptr, 0);
- Y_VERIFY(r >= 0 || errno == EWOULDBLOCK, "futex_wait failed: %s", strerror(errno));
+ Y_ABORT_UNLESS(r >= 0 || errno == EWOULDBLOCK, "futex_wait failed: %s", strerror(errno));
#else
TGuard<TMutex> guard(Mutex);
if (expected == Get()) {