aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/thread.cpp
diff options
context:
space:
mode:
authorgulin <gulin@yandex-team.ru>2022-02-10 16:47:32 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:32 +0300
commit7199613d295246a07c2f7b331fbb3128936039dc (patch)
treec0748b5dcbade83af788c0abfa89c0383d6b779c /util/system/thread.cpp
parentc807aae441c17fc7f577c35757a4b6e0bd909802 (diff)
downloadydb-7199613d295246a07c2f7b331fbb3128936039dc.tar.gz
Restoring authorship annotation for <gulin@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/system/thread.cpp')
-rw-r--r--util/system/thread.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/util/system/thread.cpp b/util/system/thread.cpp
index 746c1eac30..6236746c2d 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: