diff options
author | cepera <cepera@yandex-team.ru> | 2022-02-10 16:49:45 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:45 +0300 |
commit | 99e67b1db27953625d41d1f3eb45ff2517b4d697 (patch) | |
tree | e54d1799e55c6a3c58feb227f2a1f22aa07912c0 /util/system/thread.cpp | |
parent | 28045de07753ee182fc8e5ca778469d7a7c5bb20 (diff) | |
download | ydb-99e67b1db27953625d41d1f3eb45ff2517b4d697.tar.gz |
Restoring authorship annotation for <cepera@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/system/thread.cpp')
-rw-r--r-- | util/system/thread.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/util/system/thread.cpp b/util/system/thread.cpp index 6236746c2d9..32cdf8b8db7 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(); |