summaryrefslogtreecommitdiffstats
path: root/util/system/tls.cpp
diff options
context:
space:
mode:
authoryazevnul <[email protected]>2022-02-10 16:46:46 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:46:46 +0300
commit8cbc307de0221f84c80c42dcbe07d40727537e2c (patch)
tree625d5a673015d1df891e051033e9fcde5c7be4e5 /util/system/tls.cpp
parent30d1ef3941e0dc835be7609de5ebee66958f215a (diff)
Restoring authorship annotation for <[email protected]>. Commit 1 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 c2f1a04a148..74400efea24 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;