aboutsummaryrefslogtreecommitdiffstats
path: root/util/system
diff options
context:
space:
mode:
authorcepera <cepera@yandex-team.ru>2022-02-10 16:49:45 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:45 +0300
commit99e67b1db27953625d41d1f3eb45ff2517b4d697 (patch)
treee54d1799e55c6a3c58feb227f2a1f22aa07912c0 /util/system
parent28045de07753ee182fc8e5ca778469d7a7c5bb20 (diff)
downloadydb-99e67b1db27953625d41d1f3eb45ff2517b4d697.tar.gz
Restoring authorship annotation for <cepera@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/system')
-rw-r--r--util/system/fs_ut.cpp4
-rw-r--r--util/system/thread.cpp20
2 files changed, 12 insertions, 12 deletions
diff --git a/util/system/fs_ut.cpp b/util/system/fs_ut.cpp
index de071ebf55..b921714de7 100644
--- a/util/system/fs_ut.cpp
+++ b/util/system/fs_ut.cpp
@@ -250,12 +250,12 @@ static void RunSymLinkTest(TString fileLocalName, TString symLinkName) {
UNIT_ASSERT(fs.IsFile());
UNIT_ASSERT(!fs.IsDir());
UNIT_ASSERT(!fs.IsSymlink());
- UNIT_ASSERT_VALUES_EQUAL(fs.Size, 7u);
+ UNIT_ASSERT_VALUES_EQUAL(fs.Size, 7u);
}
{
TFileStat fs(symLinkName, true);
- //UNIT_ASSERT(fs.IsFile()); // no evidence that symlink has to be a file as well
+ //UNIT_ASSERT(fs.IsFile()); // no evidence that symlink has to be a file as well
UNIT_ASSERT(!fs.IsDir());
UNIT_ASSERT(fs.IsSymlink());
}
diff --git a/util/system/thread.cpp b/util/system/thread.cpp
index 6236746c2d..32cdf8b8db 100644
--- a/util/system/thread.cpp
+++ b/util/system/thread.cpp
@@ -286,7 +286,7 @@ TThread::TThread(TPrivateCtor, THolder<TCallableBase> callable)
}
TThread::~TThread() {
- Join();
+ Join();
}
void TThread::Start() {
@@ -294,17 +294,17 @@ void TThread::Start() {
}
void* TThread::Join() {
- if (Running()) {
- void* ret = Impl_->Join();
-
- Impl_.Destroy();
-
- return ret;
- }
+ if (Running()) {
+ void* ret = Impl_->Join();
+
+ Impl_.Destroy();
+
+ return ret;
+ }
return nullptr;
-}
-
+}
+
void TThread::Detach() {
if (Running()) {
Impl_->Detach();