aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/tls.cpp
diff options
context:
space:
mode:
authorVlad Yaroslavlev <vladon@vladon.com>2022-02-10 16:46:25 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:25 +0300
commit344ea37b4a345701ab0e67de2266a1c1bd7baf2d (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /util/system/tls.cpp
parent706b83ed7de5a473436620367af31fc0ceecde07 (diff)
downloadydb-344ea37b4a345701ab0e67de2266a1c1bd7baf2d.tar.gz
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 2 of 2.
Diffstat (limited to 'util/system/tls.cpp')
-rw-r--r--util/system/tls.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/util/system/tls.cpp b/util/system/tls.cpp
index 9fdafc5b54..c2f1a04a14 100644
--- a/util/system/tls.cpp
+++ b/util/system/tls.cpp
@@ -6,7 +6,7 @@
#include <util/generic/hash.h>
#include <util/generic/intrlist.h>
#include <util/generic/singleton.h>
-#include <util/generic/vector.h>
+#include <util/generic/vector.h>
#if defined(_unix_)
#include <pthread.h>
@@ -46,17 +46,17 @@ namespace {
{
}
- inline ~TStoredValue() {
+ inline ~TStoredValue() {
if (Dtor_ && Data_) {
Dtor_(Data_);
}
}
- inline void Set(void* ptr) noexcept {
+ inline void Set(void* ptr) noexcept {
Data_ = ptr;
}
- inline void* Get() const noexcept {
+ inline void* Get() const noexcept {
return Data_;
}
@@ -92,8 +92,8 @@ namespace {
}
private:
- TVector<TStoredValue*> Values_;
- THashMap<size_t, TStoredValue*> FarValues_;
+ TVector<TStoredValue*> Values_;
+ THashMap<size_t, TStoredValue*> FarValues_;
TIntrusiveListWithAutoDelete<TStoredValue, TDelete> Storage_;
};
@@ -126,7 +126,7 @@ namespace {
Y_VERIFY(!pthread_key_create(&Key_, Dtor), "pthread_key_create failed");
}
- inline ~TMasterTls() override {
+ inline ~TMasterTls() override {
//explicitly call dtor for main thread
Dtor(pthread_getspecific(Key_));
@@ -197,7 +197,7 @@ namespace {
}
}
- inline void Cleanup() noexcept {
+ inline void Cleanup() noexcept {
with_lock (Lock_) {
Datas_.erase(TThread::CurrentThreadId());
}
@@ -210,7 +210,7 @@ namespace {
private:
using TPTSRef = THolder<TPerThreadStorage>;
TMutex Lock_;
- THashMap<TThread::TId, TPTSRef> Datas_;
+ THashMap<TThread::TId, TPTSRef> Datas_;
};
}
@@ -255,6 +255,6 @@ void TKey::Set(void* ptr) const {
Impl_->Set(ptr);
}
-void TKey::Cleanup() noexcept {
+void TKey::Cleanup() noexcept {
TImpl::Cleanup();
}