diff options
author | dobrokot <dobrokot@yandex-team.ru> | 2022-02-10 16:49:07 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:07 +0300 |
commit | 25d83bf841d8b3ce3886525078f1964ac3c293c5 (patch) | |
tree | bd52fa16c8dd727890b2ef9d87d1a402bd0d3a9a /util/system | |
parent | 1d2e8a8e9976488ea69a7e4763aa749244f82612 (diff) | |
download | ydb-25d83bf841d8b3ce3886525078f1964ac3c293c5.tar.gz |
Restoring authorship annotation for <dobrokot@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/system')
-rw-r--r-- | util/system/defaults.h | 4 | ||||
-rw-r--r-- | util/system/mutex.cpp | 2 | ||||
-rw-r--r-- | util/system/shmat.cpp | 8 | ||||
-rw-r--r-- | util/system/shmat.h | 2 | ||||
-rw-r--r-- | util/system/tls.cpp | 2 | ||||
-rw-r--r-- | util/system/types.h | 8 |
6 files changed, 13 insertions, 13 deletions
diff --git a/util/system/defaults.h b/util/system/defaults.h index dcd7abea38e..0a363b59496 100644 --- a/util/system/defaults.h +++ b/util/system/defaults.h @@ -151,5 +151,5 @@ constexpr bool Y_IS_DEBUG_BUILD = true; #if !defined(Y_GENERATE_UNIQUE_ID) #define Y_GENERATE_UNIQUE_ID(N) Y_CAT(N, __LINE__) #endif - -#define NPOS ((size_t)-1) + +#define NPOS ((size_t)-1) diff --git a/util/system/mutex.cpp b/util/system/mutex.cpp index 4041402db9a..22fdf39a0be 100644 --- a/util/system/mutex.cpp +++ b/util/system/mutex.cpp @@ -1,7 +1,7 @@ #include "mutex.h" #include <util/generic/yexception.h> -#include <errno.h> +#include <errno.h> #if defined(_win_) #include "winint.h" diff --git a/util/system/shmat.cpp b/util/system/shmat.cpp index 07ff0d6caa4..151dc5ba1bc 100644 --- a/util/system/shmat.cpp +++ b/util/system/shmat.cpp @@ -89,12 +89,12 @@ namespace { } #endif -TSharedMemory::TSharedMemory() +TSharedMemory::TSharedMemory() : Handle(INVALID_FHANDLE) , Data(nullptr) - , Size(0) -{ -} + , Size(0) +{ +} #if defined(_win_) static void FormatName(char* buf, const TGUID& id) { diff --git a/util/system/shmat.h b/util/system/shmat.h index d9da3c151a8..27467d10352 100644 --- a/util/system/shmat.h +++ b/util/system/shmat.h @@ -12,7 +12,7 @@ class TSharedMemory: public TThrRefBase { int Size; public: - TSharedMemory(); + TSharedMemory(); ~TSharedMemory() override; bool Create(int Size); diff --git a/util/system/tls.cpp b/util/system/tls.cpp index c2f1a04a148..09a30f63057 100644 --- a/util/system/tls.cpp +++ b/util/system/tls.cpp @@ -113,7 +113,7 @@ namespace { } virtual TPerThreadStorage* MyStorageSlow() = 0; - + virtual ~TGenericTlsBase() = default; }; } diff --git a/util/system/types.h b/util/system/types.h index 12e68a60601..d4306a4dc4d 100644 --- a/util/system/types.h +++ b/util/system/types.h @@ -94,11 +94,11 @@ typedef int64_t i64; #error "Unsupported platform" #endif -// SUPERLONG -#if !defined(DONT_USE_SUPERLONG) && !defined(SUPERLONG_MAX) +// SUPERLONG +#if !defined(DONT_USE_SUPERLONG) && !defined(SUPERLONG_MAX) #define SUPERLONG_MAX ~LL(0) -typedef i64 SUPERLONG; -#endif +typedef i64 SUPERLONG; +#endif // UNICODE #ifdef __cplusplus |