aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/thread.cpp
diff options
context:
space:
mode:
authorotarakan <otarakan@yandex-team.ru>2022-02-10 16:51:48 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:51:48 +0300
commit420db8638979c88ca8267331fc92d424e350edb9 (patch)
treefffbfcdc1e9bed2e1bc942ca80282c3eb9482067 /util/system/thread.cpp
parenteb9faa9ce827080b13f2a58548d79113eeed9739 (diff)
downloadydb-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.cpp12
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: