aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/tls.cpp
diff options
context:
space:
mode:
authoryazevnul <yazevnul@yandex-team.ru>2022-02-10 16:46:48 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:48 +0300
commit9abfb1a53b7f7b791444d1378e645d8fad9b06ed (patch)
tree49e222ea1c5804306084bb3ae065bb702625360f /util/system/tls.cpp
parent8cbc307de0221f84c80c42dcbe07d40727537e2c (diff)
downloadydb-9abfb1a53b7f7b791444d1378e645d8fad9b06ed.tar.gz
Restoring authorship annotation for <yazevnul@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/system/tls.cpp')
-rw-r--r--util/system/tls.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/util/system/tls.cpp b/util/system/tls.cpp
index 74400efea2..c2f1a04a14 100644
--- a/util/system/tls.cpp
+++ b/util/system/tls.cpp
@@ -41,7 +41,7 @@ namespace {
class TStoredValue: public TIntrusiveListItem<TStoredValue> {
public:
inline TStoredValue(const TKey* key)
- : Data_(nullptr)
+ : Data_(nullptr)
, Dtor_(key->Dtor)
{
}
@@ -98,7 +98,7 @@ namespace {
};
inline TPerThreadStorage* MyStorage() {
-#if defined(Y_HAVE_FAST_POD_TLS)
+#if defined(Y_HAVE_FAST_POD_TLS)
Y_POD_STATIC_THREAD(TPerThreadStorage*)
my(nullptr);
@@ -123,14 +123,14 @@ namespace {
class TMasterTls: public TGenericTlsBase {
public:
inline TMasterTls() {
- Y_VERIFY(!pthread_key_create(&Key_, Dtor), "pthread_key_create failed");
+ Y_VERIFY(!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_VERIFY(!pthread_key_delete(Key_), "pthread_key_delete failed");
}
static inline TMasterTls* Instance() {
@@ -144,7 +144,7 @@ namespace {
if (!ret) {
ret = new TPerThreadStorage();
- Y_VERIFY(!pthread_setspecific(Key_, ret), "pthread_setspecific failed");
+ Y_VERIFY(!pthread_setspecific(Key_, ret), "pthread_setspecific failed");
}
return (TPerThreadStorage*)ret;