diff options
author | ilnurkh <ilnurkh@yandex-team.com> | 2023-10-10 10:09:12 +0300 |
---|---|---|
committer | ilnurkh <ilnurkh@yandex-team.com> | 2023-10-10 10:26:34 +0300 |
commit | 335c640261b6272bc052a251d9b8780150090b45 (patch) | |
tree | 7d4a4954aacb63514087edaaf1cd0c9999fcb94d /util/system/mutex.cpp | |
parent | b359f0072dbc794d0287c26984dd0ea0a2c27efc (diff) | |
download | ydb-335c640261b6272bc052a251d9b8780150090b45.tar.gz |
Y_VERIFY->Y_ABORT_UNLESS at ^u
https://clubs.at.yandex-team.ru/arcadia/29404
Diffstat (limited to 'util/system/mutex.cpp')
-rw-r--r-- | util/system/mutex.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/util/system/mutex.cpp b/util/system/mutex.cpp index acb6e87a1b..2850c6347b 100644 --- a/util/system/mutex.cpp +++ b/util/system/mutex.cpp @@ -35,7 +35,7 @@ public: inline ~T() { int result = pthread_mutexattr_destroy(&Attr); - Y_VERIFY(result == 0, "mutexattr destroy(%s)", LastSystemErrorText(result)); + Y_ABORT_UNLESS(result == 0, "mutexattr destroy(%s)", LastSystemErrorText(result)); } } pma; @@ -51,7 +51,7 @@ public: DeleteCriticalSection(&Obj); #else int result = pthread_mutex_destroy(&Obj); - Y_VERIFY(result == 0, "mutex destroy failure (%s)", LastSystemErrorText(result)); + Y_ABORT_UNLESS(result == 0, "mutex destroy failure (%s)", LastSystemErrorText(result)); #endif } @@ -60,7 +60,7 @@ public: EnterCriticalSection(&Obj); #else int result = pthread_mutex_lock(&Obj); - Y_VERIFY(result == 0, "mutex lock failure (%s)", LastSystemErrorText(result)); + Y_ABORT_UNLESS(result == 0, "mutex lock failure (%s)", LastSystemErrorText(result)); #endif } @@ -104,7 +104,7 @@ public: LeaveCriticalSection(&Obj); #else int result = pthread_mutex_unlock(&Obj); - Y_VERIFY(result == 0, "mutex unlock failure (%s)", LastSystemErrorText(result)); + Y_ABORT_UNLESS(result == 0, "mutex unlock failure (%s)", LastSystemErrorText(result)); #endif } |