diff options
author | kulikov <kulikov@yandex-team.ru> | 2022-02-10 16:49:34 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:34 +0300 |
commit | c707901605d7b7c6cba0998cd52e1ae619c97762 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/coroutine/engine/sockpool.h | |
parent | 65e5266709e7ff94b14ae128309e229de714b0df (diff) | |
download | ydb-c707901605d7b7c6cba0998cd52e1ae619c97762.tar.gz |
Restoring authorship annotation for <kulikov@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/coroutine/engine/sockpool.h')
-rw-r--r-- | library/cpp/coroutine/engine/sockpool.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/library/cpp/coroutine/engine/sockpool.h b/library/cpp/coroutine/engine/sockpool.h index 2afd5c709a..1ebb7e7b38 100644 --- a/library/cpp/coroutine/engine/sockpool.h +++ b/library/cpp/coroutine/engine/sockpool.h @@ -93,7 +93,7 @@ public: : Impl_(nullptr) { } - + TPooledSocket(TImpl* impl) : Impl_(impl) { @@ -178,7 +178,7 @@ public: } else { ret = AllocateMore(conn); } - + ret.Impl_->Touch(); return ret; @@ -189,10 +189,10 @@ public: alive->Touch(); socket = TPooledSocket(alive); return true; - } + } return false; } - + private: TPooledSocket::TImpl* GetImpl() { TGuard<TMutex> guard(Mutex_); |