aboutsummaryrefslogtreecommitdiffstats
path: root/util/thread/pool.cpp
diff options
context:
space:
mode:
authoralex-sh <alex-sh@yandex-team.ru>2022-02-10 16:50:03 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:03 +0300
commit88ee78b1a163eaddee7e880ac73943456040fce0 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /util/thread/pool.cpp
parent3196904c9f5bf7aff7374eeadcb0671589581f61 (diff)
downloadydb-88ee78b1a163eaddee7e880ac73943456040fce0.tar.gz
Restoring authorship annotation for <alex-sh@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/thread/pool.cpp')
-rw-r--r--util/thread/pool.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/util/thread/pool.cpp b/util/thread/pool.cpp
index 6a7ad9c2cc..05fad02e9b 100644
--- a/util/thread/pool.cpp
+++ b/util/thread/pool.cpp
@@ -759,14 +759,14 @@ namespace {
IThread* IThreadPool::DoCreate() {
return new TPoolThread(this);
}
-
+
THolder<IThreadPool> CreateThreadPool(size_t threadsCount, size_t queueSizeLimit, const TThreadPoolParams& params) {
THolder<IThreadPool> queue;
- if (threadsCount > 1) {
+ if (threadsCount > 1) {
queue.Reset(new TThreadPool(params));
- } else {
+ } else {
queue.Reset(new TFakeThreadPool());
- }
- queue->Start(threadsCount, queueSizeLimit);
- return queue;
-}
+ }
+ queue->Start(threadsCount, queueSizeLimit);
+ return queue;
+}