aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/tls.cpp
diff options
context:
space:
mode:
authorilnurkh <ilnurkh@yandex-team.com>2023-10-10 10:09:12 +0300
committerilnurkh <ilnurkh@yandex-team.com>2023-10-10 10:26:34 +0300
commit335c640261b6272bc052a251d9b8780150090b45 (patch)
tree7d4a4954aacb63514087edaaf1cd0c9999fcb94d /util/system/tls.cpp
parentb359f0072dbc794d0287c26984dd0ea0a2c27efc (diff)
downloadydb-335c640261b6272bc052a251d9b8780150090b45.tar.gz
Y_VERIFY->Y_ABORT_UNLESS at ^u
https://clubs.at.yandex-team.ru/arcadia/29404
Diffstat (limited to 'util/system/tls.cpp')
-rw-r--r--util/system/tls.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/system/tls.cpp b/util/system/tls.cpp
index 9443aec3a3..40d748274e 100644
--- a/util/system/tls.cpp
+++ b/util/system/tls.cpp
@@ -122,14 +122,14 @@ namespace {
class TMasterTls: public TGenericTlsBase {
public:
inline TMasterTls() {
- Y_VERIFY(!pthread_key_create(&Key_, Dtor), "pthread_key_create failed");
+ Y_ABORT_UNLESS(!pthread_key_create(&Key_, Dtor), "pthread_key_create failed");
}
inline ~TMasterTls() override {
//explicitly call dtor for main thread
Dtor(pthread_getspecific(Key_));
- Y_VERIFY(!pthread_key_delete(Key_), "pthread_key_delete failed");
+ Y_ABORT_UNLESS(!pthread_key_delete(Key_), "pthread_key_delete failed");
}
static inline TMasterTls* Instance() {
@@ -143,7 +143,7 @@ namespace {
if (!ret) {
ret = new TPerThreadStorage();
- Y_VERIFY(!pthread_setspecific(Key_, ret), "pthread_setspecific failed");
+ Y_ABORT_UNLESS(!pthread_setspecific(Key_, ret), "pthread_setspecific failed");
}
return (TPerThreadStorage*)ret;