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
commitbded3b82f12d007fe8a296bb4ca9cba5831c4556 (patch)
treeab7fbbf3253d4c0e2793218f09378908beb025fb /util/system/thread.cpp
parent420db8638979c88ca8267331fc92d424e350edb9 (diff)
downloadydb-bded3b82f12d007fe8a296bb4ca9cba5831c4556.tar.gz
Restoring authorship annotation for <otarakan@yandex-team.ru>. Commit 2 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 475ae1285a..6236746c2d 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: