aboutsummaryrefslogtreecommitdiffstats
path: root/util/system
diff options
context:
space:
mode:
authoragorodilov <agorodilov@yandex-team.ru>2022-02-10 16:47:09 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:09 +0300
commit7a4979e6211c3e78c7f9041d4a9e5d3405343c36 (patch)
tree9e9943579e5a14679af7cd2cda3c36d8c0b775d3 /util/system
parent676340c42e269f3070f194d160f42a83a10568d4 (diff)
downloadydb-7a4979e6211c3e78c7f9041d4a9e5d3405343c36.tar.gz
Restoring authorship annotation for <agorodilov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/system')
-rw-r--r--util/system/atomic_ut.cpp6
-rw-r--r--util/system/condvar.cpp2
-rw-r--r--util/system/condvar_ut.cpp2
-rw-r--r--util/system/context.h6
-rw-r--r--util/system/dynlib.cpp2
-rw-r--r--util/system/dynlib.h18
-rw-r--r--util/system/event_ut.cpp6
-rw-r--r--util/system/file.cpp4
-rw-r--r--util/system/filemap.cpp2
-rw-r--r--util/system/mutex.h2
-rw-r--r--util/system/mutex_ut.cpp2
-rw-r--r--util/system/pipe.cpp2
-rw-r--r--util/system/rwlock.cpp2
-rw-r--r--util/system/rwlock_ut.cpp2
-rw-r--r--util/system/sem.cpp4
-rw-r--r--util/system/shellcommand.cpp2
-rw-r--r--util/system/shellcommand_ut.cpp4
-rw-r--r--util/system/shmat.h2
-rw-r--r--util/system/tls.cpp6
-rw-r--r--util/system/tls.h12
20 files changed, 44 insertions, 44 deletions
diff --git a/util/system/atomic_ut.cpp b/util/system/atomic_ut.cpp
index 07211ffba7..ec0e16bfaa 100644
--- a/util/system/atomic_ut.cpp
+++ b/util/system/atomic_ut.cpp
@@ -175,7 +175,7 @@ private:
inline void TestAtomicPtr() {
int* p;
- AtomicSet(p, nullptr);
+ AtomicSet(p, nullptr);
UNIT_ASSERT_VALUES_EQUAL(AtomicGet(p), 0);
@@ -183,8 +183,8 @@ private:
AtomicSet(p, &i);
UNIT_ASSERT_VALUES_EQUAL(AtomicGet(p), &i);
- UNIT_ASSERT_VALUES_EQUAL(AtomicSwap(&p, nullptr), &i);
- UNIT_ASSERT(AtomicCas(&p, &i, nullptr));
+ UNIT_ASSERT_VALUES_EQUAL(AtomicSwap(&p, nullptr), &i);
+ UNIT_ASSERT(AtomicCas(&p, &i, nullptr));
}
};
diff --git a/util/system/condvar.cpp b/util/system/condvar.cpp
index 62f3d22356..b31e0dca64 100644
--- a/util/system/condvar.cpp
+++ b/util/system/condvar.cpp
@@ -132,7 +132,7 @@ TCondVar::TCondVar()
{
}
-TCondVar::~TCondVar() = default;
+TCondVar::~TCondVar() = default;
void TCondVar::BroadCast() noexcept {
Impl_->BroadCast();
diff --git a/util/system/condvar_ut.cpp b/util/system/condvar_ut.cpp
index 5130a18d32..d883c3fc49 100644
--- a/util/system/condvar_ut.cpp
+++ b/util/system/condvar_ut.cpp
@@ -50,7 +50,7 @@ class TCondVarTest: public TTestBase {
{
}
- void Process(void*) override {
+ void Process(void*) override {
THolder<TThreadTask> This(this);
(this->*Func_)();
diff --git a/util/system/context.h b/util/system/context.h
index d2a349bfc5..a60e087f01 100644
--- a/util/system/context.h
+++ b/util/system/context.h
@@ -45,7 +45,7 @@
#endif
struct ITrampoLine {
- virtual ~ITrampoLine() = default;
+ virtual ~ITrampoLine() = default;
virtual void DoRun();
virtual void DoRunNaked();
@@ -131,7 +131,7 @@ public:
TContMachineContext(const TContClosure& c);
- inline ~TContMachineContext() = default;
+ inline ~TContMachineContext() = default;
void SwitchTo(TContMachineContext* next) noexcept;
@@ -176,6 +176,6 @@ struct TExceptionSafeContext: public TContMachineContext {
void SwitchTo(TExceptionSafeContext* to) noexcept;
#if defined(_unix_)
- void* Buf_[2] = {nullptr, nullptr};
+ void* Buf_[2] = {nullptr, nullptr};
#endif
};
diff --git a/util/system/dynlib.cpp b/util/system/dynlib.cpp
index 9d2541c25f..deeb1d5654 100644
--- a/util/system/dynlib.cpp
+++ b/util/system/dynlib.cpp
@@ -103,7 +103,7 @@ TDynamicLibrary::TDynamicLibrary(const TString& path, int flags) {
Open(path.data(), flags);
}
-TDynamicLibrary::~TDynamicLibrary() = default;
+TDynamicLibrary::~TDynamicLibrary() = default;
void TDynamicLibrary::Open(const char* path, int flags) {
Impl_.Reset(TImpl::SafeCreate(path, flags));
diff --git a/util/system/dynlib.h b/util/system/dynlib.h
index 66eaf4a5c1..c590209c28 100644
--- a/util/system/dynlib.h
+++ b/util/system/dynlib.h
@@ -49,12 +49,12 @@ private:
public:
TExternalSymbol() noexcept {
- PLib = nullptr;
- DLib = nullptr;
+ PLib = nullptr;
+ DLib = nullptr;
}
TExternalSymbol(const TExternalSymbol& es) {
- PLib = nullptr;
- DLib = nullptr;
+ PLib = nullptr;
+ DLib = nullptr;
if (es.IsDynamic())
Open(es.LibName().data(), es.VtblName().data());
else if (es.IsStatic())
@@ -75,7 +75,7 @@ public:
}
// set the symbol from dynamic source
void Open(const char* lib_name, const char* vtbl_name) {
- if (DLib != nullptr || PLib != nullptr)
+ if (DLib != nullptr || PLib != nullptr)
return;
try {
DLib = new TDynamicLibrary();
@@ -83,7 +83,7 @@ public:
PLib = (TLib*)DLib->Sym(vtbl_name);
} catch (...) {
delete DLib;
- DLib = nullptr;
+ DLib = nullptr;
throw;
}
lname = lib_name;
@@ -91,7 +91,7 @@ public:
}
// set the symbol from static source
void SetSym(TLib* pl) noexcept {
- if (DLib == nullptr && PLib == nullptr)
+ if (DLib == nullptr && PLib == nullptr)
PLib = pl;
}
void Close() noexcept {
@@ -111,9 +111,9 @@ public:
return vname;
}
bool IsStatic() const noexcept {
- return DLib == nullptr && PLib != nullptr;
+ return DLib == nullptr && PLib != nullptr;
}
bool IsDynamic() const noexcept {
- return DLib && DLib->IsLoaded() && PLib != nullptr;
+ return DLib && DLib->IsLoaded() && PLib != nullptr;
}
};
diff --git a/util/system/event_ut.cpp b/util/system/event_ut.cpp
index 2506cb7a91..e2a524034d 100644
--- a/util/system/event_ut.cpp
+++ b/util/system/event_ut.cpp
@@ -26,7 +26,7 @@ namespace {
{
}
- void Process(void*) override {
+ void Process(void*) override {
THolder<TThreadTask> This(this);
if (Id_ == 0) {
@@ -58,7 +58,7 @@ namespace {
{
}
- void Process(void*) override {
+ void Process(void*) override {
Ev_.Signal();
}
};
@@ -74,7 +74,7 @@ namespace {
{
}
- void Process(void*) override {
+ void Process(void*) override {
Ev->WaitI();
Ev.Destroy();
}
diff --git a/util/system/file.cpp b/util/system/file.cpp
index 4a261d020c..49960416d2 100644
--- a/util/system/file.cpp
+++ b/util/system/file.cpp
@@ -858,7 +858,7 @@ public:
}
}
- inline ~TImpl() = default;
+ inline ~TImpl() = default;
inline void Close() {
if (!Handle_.Close()) {
@@ -1107,7 +1107,7 @@ TFile::TFile(const TString& fName, EOpenMode oMode)
{
}
-TFile::~TFile() = default;
+TFile::~TFile() = default;
void TFile::Close() {
Impl_->Close();
diff --git a/util/system/filemap.cpp b/util/system/filemap.cpp
index 7454a4cb94..c630a15ebc 100644
--- a/util/system/filemap.cpp
+++ b/util/system/filemap.cpp
@@ -381,7 +381,7 @@ TMemoryMap::TMemoryMap(const TFile& file, EOpenMode om, TString dbgName)
{
}
-TMemoryMap::~TMemoryMap() = default;
+TMemoryMap::~TMemoryMap() = default;
TMemoryMap::TMapResult TMemoryMap::Map(i64 offset, size_t size) {
return Impl_->Map(offset, size);
diff --git a/util/system/mutex.h b/util/system/mutex.h
index 032630d134..3568a8215b 100644
--- a/util/system/mutex.h
+++ b/util/system/mutex.h
@@ -30,7 +30,7 @@ public:
Release();
}
- ~TFakeMutex() = default;
+ ~TFakeMutex() = default;
};
class TMutex {
diff --git a/util/system/mutex_ut.cpp b/util/system/mutex_ut.cpp
index c8d7caafa1..759081ae9e 100644
--- a/util/system/mutex_ut.cpp
+++ b/util/system/mutex_ut.cpp
@@ -38,7 +38,7 @@ class TMutexTest: public TTestBase {
{
}
- void Process(void*) override {
+ void Process(void*) override {
THolder<TThreadTask> This(this);
(this->*Func_)();
diff --git a/util/system/pipe.cpp b/util/system/pipe.cpp
index a543bd7472..c41fe30f24 100644
--- a/util/system/pipe.cpp
+++ b/util/system/pipe.cpp
@@ -128,7 +128,7 @@ TPipe::TPipe(PIPEHANDLE fd)
{
}
-TPipe::~TPipe() = default;
+TPipe::~TPipe() = default;
void TPipe::Close() {
Impl_->Close();
diff --git a/util/system/rwlock.cpp b/util/system/rwlock.cpp
index bb3dcbf188..941f35d3f6 100644
--- a/util/system/rwlock.cpp
+++ b/util/system/rwlock.cpp
@@ -219,7 +219,7 @@ TRWMutex::TRWMutex()
{
}
-TRWMutex::~TRWMutex() = default;
+TRWMutex::~TRWMutex() = default;
void TRWMutex::AcquireRead() noexcept {
Impl_->AcquireRead();
diff --git a/util/system/rwlock_ut.cpp b/util/system/rwlock_ut.cpp
index 2b384c05b3..3fc1210887 100644
--- a/util/system/rwlock_ut.cpp
+++ b/util/system/rwlock_ut.cpp
@@ -40,7 +40,7 @@ class TRWMutexTest: public TTestBase {
{
}
- void Process(void*) override {
+ void Process(void*) override {
THolder<TThreadTask> This(this);
(this->*Func_)();
diff --git a/util/system/sem.cpp b/util/system/sem.cpp
index 4a93b903b5..93a1390e05 100644
--- a/util/system/sem.cpp
+++ b/util/system/sem.cpp
@@ -225,7 +225,7 @@ TSemaphore::TSemaphore(const char* name, ui32 maxFreeCount)
{
}
-TSemaphore::~TSemaphore() = default;
+TSemaphore::~TSemaphore() = default;
void TSemaphore::Release() noexcept {
Impl_->Release();
@@ -263,7 +263,7 @@ TFastSemaphore::TFastSemaphore(ui32 maxFreeCount)
{
}
-TFastSemaphore::~TFastSemaphore() = default;
+TFastSemaphore::~TFastSemaphore() = default;
void TFastSemaphore::Release() noexcept {
Impl_->Release();
diff --git a/util/system/shellcommand.cpp b/util/system/shellcommand.cpp
index b1989b5c8c..3b7361381b 100644
--- a/util/system/shellcommand.cpp
+++ b/util/system/shellcommand.cpp
@@ -1132,7 +1132,7 @@ TShellCommand::TShellCommand(const TStringBuf cmd, const TShellCommandOptions& o
{
}
-TShellCommand::~TShellCommand() = default;
+TShellCommand::~TShellCommand() = default;
TShellCommand& TShellCommand::operator<<(const TStringBuf argument) {
Impl->AppendArgument(argument);
diff --git a/util/system/shellcommand_ut.cpp b/util/system/shellcommand_ut.cpp
index 9d849279d2..9ccf29deef 100644
--- a/util/system/shellcommand_ut.cpp
+++ b/util/system/shellcommand_ut.cpp
@@ -263,11 +263,11 @@ Y_UNIT_TEST_SUITE(TShellCommandTest) {
Y_UNIT_TEST(TestStreamClose) {
struct TStream: public IOutputStream {
size_t NumCloses = 0;
- void DoWrite(const void* buf, size_t len) override {
+ void DoWrite(const void* buf, size_t len) override {
Y_UNUSED(buf);
Y_UNUSED(len);
}
- void DoFinish() override {
+ void DoFinish() override {
++NumCloses;
}
} stream;
diff --git a/util/system/shmat.h b/util/system/shmat.h
index d9da3c151a..80007beae8 100644
--- a/util/system/shmat.h
+++ b/util/system/shmat.h
@@ -13,7 +13,7 @@ class TSharedMemory: public TThrRefBase {
public:
TSharedMemory();
- ~TSharedMemory() override;
+ ~TSharedMemory() override;
bool Create(int Size);
bool Open(const TGUID& id, int size);
diff --git a/util/system/tls.cpp b/util/system/tls.cpp
index c2f1a04a14..82cf6da223 100644
--- a/util/system/tls.cpp
+++ b/util/system/tls.cpp
@@ -114,7 +114,7 @@ namespace {
virtual TPerThreadStorage* MyStorageSlow() = 0;
- virtual ~TGenericTlsBase() = default;
+ virtual ~TGenericTlsBase() = default;
};
}
@@ -138,7 +138,7 @@ namespace {
}
private:
- TPerThreadStorage* MyStorageSlow() override {
+ TPerThreadStorage* MyStorageSlow() override {
void* ret = pthread_getspecific(Key_);
if (!ret) {
@@ -245,7 +245,7 @@ TKey::TKey(TDtor dtor)
TKey::TKey(TKey&&) noexcept = default;
-TKey::~TKey() = default;
+TKey::~TKey() = default;
void* TKey::Get() const {
return Impl_->Get();
diff --git a/util/system/tls.h b/util/system/tls.h
index 3c4f56dbeb..3ce7211841 100644
--- a/util/system/tls.h
+++ b/util/system/tls.h
@@ -180,18 +180,18 @@ namespace NTls {
class TValue: public TMoveOnly {
class TConstructor {
public:
- TConstructor() noexcept = default;
+ TConstructor() noexcept = default;
- virtual ~TConstructor() = default;
+ virtual ~TConstructor() = default;
virtual T* Construct(void* ptr) const = 0;
};
class TDefaultConstructor: public TConstructor {
public:
- ~TDefaultConstructor() override = default;
+ ~TDefaultConstructor() override = default;
- T* Construct(void* ptr) const override {
+ T* Construct(void* ptr) const override {
//memset(ptr, 0, sizeof(T));
return ::new (ptr) T();
}
@@ -205,9 +205,9 @@ namespace NTls {
{
}
- ~TCopyConstructor() override = default;
+ ~TCopyConstructor() override = default;
- T* Construct(void* ptr) const override {
+ T* Construct(void* ptr) const override {
return ::new (ptr) T(Value);
}