diff options
author | ddoarn <[email protected]> | 2022-02-10 16:49:52 +0300 |
---|---|---|
committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:49:52 +0300 |
commit | 0783fe3f48d91a3b741ce2ea32b11fbfc1637e7e (patch) | |
tree | 6d6a79d83e5003eaf4d45cac346113c1137cb886 /util/system | |
parent | 9541fc30d6f0877db9ff199a16f7fc2505d46a5c (diff) |
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'util/system')
-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 |
3 files changed, 15 insertions, 15 deletions
diff --git a/util/system/event.cpp b/util/system/event.cpp index 79b3cdb2917..d7cc5caaa01 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 e4c3f21e6b4..a0bae5d50c4 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 3c4f56dbeb7..1f08352e50a 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: |