diff options
author | otarakan <otarakan@yandex-team.ru> | 2022-02-10 16:51:48 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:51:48 +0300 |
commit | 420db8638979c88ca8267331fc92d424e350edb9 (patch) | |
tree | fffbfcdc1e9bed2e1bc942ca80282c3eb9482067 /util/system/thread.cpp | |
parent | eb9faa9ce827080b13f2a58548d79113eeed9739 (diff) | |
download | ydb-420db8638979c88ca8267331fc92d424e350edb9.tar.gz |
Restoring authorship annotation for <otarakan@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/system/thread.cpp')
-rw-r--r-- | util/system/thread.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/util/system/thread.cpp b/util/system/thread.cpp index 6236746c2d..475ae1285a 100644 --- a/util/system/thread.cpp +++ b/util/system/thread.cpp @@ -125,18 +125,18 @@ namespace { } inline void Start() { - //do not do this, kids, at home - P_->Ref(); + //do not do this, kids, at home + P_->Ref(); #if _WIN32_WINNT < 0x0502 Handle = reinterpret_cast<HANDLE>(::_beginthreadex(nullptr, (unsigned)StackSize(*P_), Proxy, (void*)P_.Get(), 0, &ThreadId)); #else Handle = reinterpret_cast<HANDLE>(::_beginthreadex(nullptr, (unsigned)StackSize(*P_), Proxy, (void*)P_.Get(), 0, nullptr)); #endif - if (!Handle) { - P_->UnRef(); - ythrow yexception() << "failed to create a thread"; - } + if (!Handle) { + P_->UnRef(); + ythrow yexception() << "failed to create a thread"; + } } private: |