aboutsummaryrefslogtreecommitdiffstats
path: root/util/thread/pool.cpp
diff options
context:
space:
mode:
authorfippo <fippo@yandex-team.ru>2022-02-10 16:50:08 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:08 +0300
commit7bf72dabd2102d9781c1ec7a754579757baa7b90 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /util/thread/pool.cpp
parent3e57c324d47a3a202cb3c5a9648d2f92103d5213 (diff)
downloadydb-7bf72dabd2102d9781c1ec7a754579757baa7b90.tar.gz
Restoring authorship annotation for <fippo@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/thread/pool.cpp')
-rw-r--r--util/thread/pool.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/thread/pool.cpp b/util/thread/pool.cpp
index b6cb59644d..05fad02e9b 100644
--- a/util/thread/pool.cpp
+++ b/util/thread/pool.cpp
@@ -641,7 +641,7 @@ size_t TSimpleThreadPool::Size() const noexcept {
return 0;
}
-namespace {
+namespace {
class TOwnedObjectInQueue: public IObjectInQueue {
private:
THolder<IObjectInQueue> Owned;
@@ -657,8 +657,8 @@ namespace {
Owned->Process(data);
}
};
-}
-
+}
+
void IThreadPool::SafeAdd(IObjectInQueue* obj) {
Y_ENSURE_EX(Add(obj), TThreadPoolException() << TStringBuf("can not add object to queue"));
}