diff options
author | iseg <iseg@yandex-team.ru> | 2022-02-10 16:49:39 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:39 +0300 |
commit | 8b71ce88bea710a9663bb143e4916f961c57212e (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /util/system/tls.h | |
parent | f828a15ab90e9ca8e848f83caf95c95f06be46e7 (diff) | |
download | ydb-8b71ce88bea710a9663bb143e4916f961c57212e.tar.gz |
Restoring authorship annotation for <iseg@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/system/tls.h')
-rw-r--r-- | util/system/tls.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/util/system/tls.h b/util/system/tls.h index 17d58e3a0c..3c4f56dbeb 100644 --- a/util/system/tls.h +++ b/util/system/tls.h @@ -1,5 +1,5 @@ #pragma once - + #include "defaults.h" #include <util/generic/ptr.h> @@ -176,7 +176,7 @@ namespace NTls { } }; - template <class T> + template <class T> class TValue: public TMoveOnly { class TConstructor { public: @@ -227,12 +227,12 @@ namespace NTls { : Constructor_(new TCopyConstructor<T1>(value)) , Key_(Dtor) { - } + } template <class T1> inline T& operator=(const T1& val) { return Get() = val; - } + } inline operator const T&() const { return Get(); @@ -275,7 +275,7 @@ namespace NTls { } return val; - } + } private: static void Dtor(void* ptr) { @@ -283,12 +283,12 @@ namespace NTls { ((T*)ptr)->~T(); ::NPrivate::FillWithTrash(ptr, sizeof(T)); - } + } private: THolder<TConstructor> Constructor_; TKey Key_; - }; + }; } template <class T> |