aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/tls.h
diff options
context:
space:
mode:
authorleo <leo@yandex-team.ru>2022-02-10 16:46:40 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:40 +0300
commit980edcd3304699edf9d4e4d6a656e585028e2a72 (patch)
tree139f47f3911484ae9af0eb347b1a88bd6c4bb35f /util/system/tls.h
parentb036a557f285146e5e35d4213e29a094ab907bcf (diff)
downloadydb-980edcd3304699edf9d4e4d6a656e585028e2a72.tar.gz
Restoring authorship annotation for <leo@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/system/tls.h')
-rw-r--r--util/system/tls.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/util/system/tls.h b/util/system/tls.h
index 3c4f56dbeb..bcf8ebeb2a 100644
--- a/util/system/tls.h
+++ b/util/system/tls.h
@@ -4,7 +4,7 @@
#include <util/generic/ptr.h>
#include <util/generic/noncopyable.h>
-
+
#include <new>
#if defined(_darwin_)
@@ -124,7 +124,7 @@
#define Y_THREAD(T) ::NTls::TValue<T>
#define Y_STATIC_THREAD(T) static Y_THREAD(T)
-
+
// gcc and msvc support automatic tls for POD types
#if defined(Y_DISABLE_THRKEY_OPTIMIZATION)
// nothing to do
@@ -169,8 +169,8 @@ namespace NTls {
class TImpl;
THolder<TImpl> Impl_;
};
-
- struct TCleaner {
+
+ struct TCleaner {
inline ~TCleaner() {
TKey::Cleanup();
}
@@ -220,7 +220,7 @@ namespace NTls {
: Constructor_(new TDefaultConstructor())
, Key_(Dtor)
{
- }
+ }
template <class T1>
inline TValue(const T1& value)
@@ -236,7 +236,7 @@ namespace NTls {
inline operator const T&() const {
return Get();
- }
+ }
inline operator T&() {
return Get();