aboutsummaryrefslogtreecommitdiffstats
path: root/util/thread/pool.cpp
diff options
context:
space:
mode:
authoronpopov <onpopov@yandex-team.ru>2022-02-10 16:50:38 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:38 +0300
commit84a29dd4980d5b39615e453f289bd1a81213296d (patch)
tree5e320f10d6b5863e0d5ab1a8caa9eefbdaa5195f /util/thread/pool.cpp
parent1717072c6635948128dad7b015a0ec05acbe913b (diff)
downloadydb-84a29dd4980d5b39615e453f289bd1a81213296d.tar.gz
Restoring authorship annotation for <onpopov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/thread/pool.cpp')
-rw-r--r--util/thread/pool.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/thread/pool.cpp b/util/thread/pool.cpp
index 05fad02e9b..10b74efb80 100644
--- a/util/thread/pool.cpp
+++ b/util/thread/pool.cpp
@@ -592,7 +592,7 @@ size_t TAdaptiveThreadPool::Size() const noexcept {
void TAdaptiveThreadPool::SetMaxIdleTime(TDuration interval) {
Y_ENSURE_EX(Impl_.Get(), TThreadPoolException() << TStringBuf("mtp queue not started"));
- Impl_->SetMaxIdleTime(interval);
+ Impl_->SetMaxIdleTime(interval);
}
TSimpleThreadPool::~TSimpleThreadPool() {
@@ -623,7 +623,7 @@ void TSimpleThreadPool::Start(size_t thrnum, size_t maxque) {
tmp->Start(thrnum, maxque);
if (adaptive) {
- adaptive->SetMaxIdleTime(TDuration::Seconds(100));
+ adaptive->SetMaxIdleTime(TDuration::Seconds(100));
}
Slave_.Swap(tmp);