aboutsummaryrefslogtreecommitdiffstats
path: root/util/system
diff options
context:
space:
mode:
authorcobat <cobat@yandex-team.ru>2022-02-10 16:49:07 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:07 +0300
commite486e109b08823b61996f2154f0bc6b7c27a4af4 (patch)
treecb98553f871fe96452fd02bd46a1a4e0cf165844 /util/system
parent85e7b8b43a12f69b4721aee71dea28491c9bd503 (diff)
downloadydb-e486e109b08823b61996f2154f0bc6b7c27a4af4.tar.gz
Restoring authorship annotation for <cobat@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/system')
-rw-r--r--util/system/hp_timer.h8
-rw-r--r--util/system/rwlock.cpp4
-rw-r--r--util/system/types.h2
3 files changed, 7 insertions, 7 deletions
diff --git a/util/system/hp_timer.h b/util/system/hp_timer.h
index 0a4c252ec2..e9ab10ec26 100644
--- a/util/system/hp_timer.h
+++ b/util/system/hp_timer.h
@@ -4,13 +4,13 @@
namespace NHPTimer {
using STime = i64;
- // May delay for ~50ms to compute frequency
+ // May delay for ~50ms to compute frequency
double GetSeconds(const STime& a) noexcept;
- // Returns the current time
+ // Returns the current time
void GetTime(STime* pTime) noexcept;
- // Returns the time passed since *pTime, and writes the current time into *pTime.
+ // Returns the time passed since *pTime, and writes the current time into *pTime.
double GetTimePassed(STime* pTime) noexcept;
- // Get TSC frequency, may delay for ~50ms to compute frequency
+ // Get TSC frequency, may delay for ~50ms to compute frequency
double GetClockRate() noexcept;
// same as GetClockRate, but in integer
ui64 GetCyclesPerSecond() noexcept;
diff --git a/util/system/rwlock.cpp b/util/system/rwlock.cpp
index bb3dcbf188..abe7435960 100644
--- a/util/system/rwlock.cpp
+++ b/util/system/rwlock.cpp
@@ -41,8 +41,8 @@ TRWMutex::TImpl::TImpl()
}
TRWMutex::TImpl::~TImpl() {
- Y_VERIFY(State_ == 0, "failure, State_ != 0");
- Y_VERIFY(BlockedWriters_ == 0, "failure, BlockedWriters_ != 0");
+ Y_VERIFY(State_ == 0, "failure, State_ != 0");
+ Y_VERIFY(BlockedWriters_ == 0, "failure, BlockedWriters_ != 0");
}
void TRWMutex::TImpl::AcquireRead() noexcept {
diff --git a/util/system/types.h b/util/system/types.h
index 12e68a6060..3408749656 100644
--- a/util/system/types.h
+++ b/util/system/types.h
@@ -33,7 +33,7 @@ typedef int64_t i64;
#define LL(number) INT64_C(number)
#define ULL(number) UINT64_C(number)
-// Macro for size_t and ptrdiff_t types
+// Macro for size_t and ptrdiff_t types
#if defined(_32_)
#if defined(_darwin_)
#define PRISZT "lu"