aboutsummaryrefslogtreecommitdiffstats
path: root/util/thread
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
commit8773f7661194d4c0bdb1e3937b2ff7ae01dd13f8 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /util/thread
parent84a29dd4980d5b39615e453f289bd1a81213296d (diff)
downloadydb-8773f7661194d4c0bdb1e3937b2ff7ae01dd13f8.tar.gz
Restoring authorship annotation for <onpopov@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/thread')
-rw-r--r--util/thread/pool.cpp4
-rw-r--r--util/thread/pool.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/util/thread/pool.cpp b/util/thread/pool.cpp
index 10b74efb80..05fad02e9b 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);
diff --git a/util/thread/pool.h b/util/thread/pool.h
index 9f92eec8da..d1ea3a67cb 100644
--- a/util/thread/pool.h
+++ b/util/thread/pool.h
@@ -10,8 +10,8 @@
#include <util/generic/noncopyable.h>
#include <functional>
-class TDuration;
-
+class TDuration;
+
struct IObjectInQueue {
virtual ~IObjectInQueue() = default;