diff options
author | gulin <gulin@yandex-team.ru> | 2022-02-10 16:47:31 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:31 +0300 |
commit | c807aae441c17fc7f577c35757a4b6e0bd909802 (patch) | |
tree | fc3268f43edbf6f854c0266cd05b91952484179b /util/system/thread.cpp | |
parent | d06e6190fa85c1fb4b011631503d53ea39942ff9 (diff) | |
download | ydb-c807aae441c17fc7f577c35757a4b6e0bd909802.tar.gz |
Restoring authorship annotation for <gulin@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/system/thread.cpp')
-rw-r--r-- | util/system/thread.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/util/system/thread.cpp b/util/system/thread.cpp index 6236746c2d..746c1eac30 100644 --- a/util/system/thread.cpp +++ b/util/system/thread.cpp @@ -203,15 +203,15 @@ namespace { } } - { + { TParams* holdP = P_.Release(); - int err = pthread_create(&H_, pattrs, ThreadProxy, holdP); - if (err) { + int err = pthread_create(&H_, pattrs, ThreadProxy, holdP); + if (err) { H_ = {}; - P_.Reset(holdP); - PCHECK(err, "failed to create thread"); - } - } + P_.Reset(holdP); + PCHECK(err, "failed to create thread"); + } + } } private: |