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
commit70cc862712bf4b7db64c26723d862268e0011e05 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /util/system
parent99e67b1db27953625d41d1f3eb45ff2517b4d697 (diff)
downloadydb-70cc862712bf4b7db64c26723d862268e0011e05.tar.gz
Restoring authorship annotation for <cepera@yandex-team.ru>. Commit 2 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 b921714de7..de071ebf55 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 32cdf8b8db..6236746c2d 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();