diff options
author | Vlad Yaroslavlev <vladon@vladon.com> | 2022-02-10 16:46:23 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:23 +0300 |
commit | 706b83ed7de5a473436620367af31fc0ceecde07 (patch) | |
tree | 103305d30dec77e8f6367753367f59b3cd68f9f1 /util/system/tls.h | |
parent | 918e8a1574070d0ec733f0b76cfad8f8892ad2e5 (diff) | |
download | ydb-706b83ed7de5a473436620367af31fc0ceecde07.tar.gz |
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 1 of 2.
Diffstat (limited to 'util/system/tls.h')
-rw-r--r-- | util/system/tls.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/util/system/tls.h b/util/system/tls.h index 3c4f56dbeb..29b5e1994b 100644 --- a/util/system/tls.h +++ b/util/system/tls.h @@ -158,12 +158,12 @@ namespace NTls { public: TKey(TDtor dtor); TKey(TKey&&) noexcept; - ~TKey(); + ~TKey(); void* Get() const; void Set(void* ptr) const; - static void Cleanup() noexcept; + static void Cleanup() noexcept; private: class TImpl; @@ -171,7 +171,7 @@ namespace NTls { }; struct TCleaner { - inline ~TCleaner() { + inline ~TCleaner() { TKey::Cleanup(); } }; @@ -292,16 +292,16 @@ namespace NTls { } template <class T> -static inline T& TlsRef(NTls::TValue<T>& v) noexcept { +static inline T& TlsRef(NTls::TValue<T>& v) noexcept { return v; } template <class T> -static inline const T& TlsRef(const NTls::TValue<T>& v) noexcept { +static inline const T& TlsRef(const NTls::TValue<T>& v) noexcept { return v; } template <class T> -static inline T& TlsRef(T& v) noexcept { +static inline T& TlsRef(T& v) noexcept { return v; } |