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
commit1d2e8a8e9976488ea69a7e4763aa749244f82612 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /util/system
parente486e109b08823b61996f2154f0bc6b7c27a4af4 (diff)
downloadydb-1d2e8a8e9976488ea69a7e4763aa749244f82612.tar.gz
Restoring authorship annotation for <cobat@yandex-team.ru>. Commit 2 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 e9ab10ec26..0a4c252ec2 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 abe7435960..bb3dcbf188 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 3408749656..12e68a6060 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"