diff options
author | ddoarn <ddoarn@yandex-team.ru> | 2022-02-10 16:49:52 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:52 +0300 |
commit | 0783fe3f48d91a3b741ce2ea32b11fbfc1637e7e (patch) | |
tree | 6d6a79d83e5003eaf4d45cac346113c1137cb886 /util | |
parent | 9541fc30d6f0877db9ff199a16f7fc2505d46a5c (diff) | |
download | ydb-0783fe3f48d91a3b741ce2ea32b11fbfc1637e7e.tar.gz |
Restoring authorship annotation for <ddoarn@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util')
-rw-r--r-- | util/datetime/cputimer.cpp | 2 | ||||
-rw-r--r-- | util/folder/fts.cpp | 2 | ||||
-rw-r--r-- | util/generic/vector.h | 10 | ||||
-rw-r--r-- | util/system/event.cpp | 2 | ||||
-rw-r--r-- | util/system/hp_timer.cpp | 24 | ||||
-rw-r--r-- | util/system/tls.h | 4 |
6 files changed, 22 insertions, 22 deletions
diff --git a/util/datetime/cputimer.cpp b/util/datetime/cputimer.cpp index 516d372c37..69e888e79e 100644 --- a/util/datetime/cputimer.cpp +++ b/util/datetime/cputimer.cpp @@ -36,7 +36,7 @@ static ui64 GetCyclesPerSecond() { if (ManuallySetCyclesPerSecond != 0) { return ManuallySetCyclesPerSecond; } else { - return NHPTimer::GetCyclesPerSecond(); + return NHPTimer::GetCyclesPerSecond(); } } diff --git a/util/folder/fts.cpp b/util/folder/fts.cpp index 0e6a6f86eb..9f18f8bd14 100644 --- a/util/folder/fts.cpp +++ b/util/folder/fts.cpp @@ -161,7 +161,7 @@ dird get_dird(char* path) { WCHAR* ret = _wfullpath(0, buf, 0); free(buf); - return ret; + return ret; } #endif // ndef _win_ diff --git a/util/generic/vector.h b/util/generic/vector.h index a5b258955a..7135d0af48 100644 --- a/util/generic/vector.h +++ b/util/generic/vector.h @@ -68,7 +68,7 @@ public: } inline TVector(const TSelf& src) - : TBase(src) + : TBase(src) { } @@ -83,10 +83,10 @@ public: { } - inline TSelf& operator=(const TSelf& src) { - TBase::operator=(src); - return *this; - } + inline TSelf& operator=(const TSelf& src) { + TBase::operator=(src); + return *this; + } inline TSelf& operator=(TSelf&& src) noexcept { TBase::operator=(std::forward<TSelf>(src)); diff --git a/util/system/event.cpp b/util/system/event.cpp index 79b3cdb291..d7cc5caaa0 100644 --- a/util/system/event.cpp +++ b/util/system/event.cpp @@ -43,7 +43,7 @@ public: return WaitForSingleObject(cond, (deadLine - now).MilliSeconds()) == WAIT_OBJECT_0; } - return (WaitForSingleObject(cond, 0) == WAIT_OBJECT_0); + return (WaitForSingleObject(cond, 0) == WAIT_OBJECT_0); } #else inline TEvImpl(ResetMode rmode) diff --git a/util/system/hp_timer.cpp b/util/system/hp_timer.cpp index e4c3f21e6b..a0bae5d50c 100644 --- a/util/system/hp_timer.cpp +++ b/util/system/hp_timer.cpp @@ -10,8 +10,8 @@ namespace { struct TFreq { inline TFreq() : Freq(InitHPTimer()) - , Rate(1.0 / Freq) - , CyclesPerSecond(static_cast<ui64>(Rate)) + , Rate(1.0 / Freq) + , CyclesPerSecond(static_cast<ui64>(Rate)) { } @@ -80,16 +80,16 @@ namespace { } inline double GetClockRate() const { - return Rate; - } - - inline ui64 GetCyclesPerSecond() const { - return CyclesPerSecond; + return Rate; } + inline ui64 GetCyclesPerSecond() const { + return CyclesPerSecond; + } + const double Freq; - const double Rate; - const ui64 CyclesPerSecond; + const double Rate; + const ui64 CyclesPerSecond; }; } @@ -102,9 +102,9 @@ double NHPTimer::GetClockRate() noexcept { } ui64 NHPTimer::GetCyclesPerSecond() noexcept { - return TFreq::Instance().GetCyclesPerSecond(); -} - + return TFreq::Instance().GetCyclesPerSecond(); +} + void NHPTimer::GetTime(STime* pTime) noexcept { *pTime = GetCycleCount(); } diff --git a/util/system/tls.h b/util/system/tls.h index 3c4f56dbeb..1f08352e50 100644 --- a/util/system/tls.h +++ b/util/system/tls.h @@ -193,7 +193,7 @@ namespace NTls { T* Construct(void* ptr) const override { //memset(ptr, 0, sizeof(T)); - return ::new (ptr) T(); + return ::new (ptr) T(); } }; @@ -208,7 +208,7 @@ namespace NTls { ~TCopyConstructor() override = default; T* Construct(void* ptr) const override { - return ::new (ptr) T(Value); + return ::new (ptr) T(Value); } private: |