aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/threading/equeue
diff options
context:
space:
mode:
authoreeight <eeight@yandex-team.ru>2022-02-10 16:46:19 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:19 +0300
commitbd085aee9b4f7a0bee302ce687964ffb7098f986 (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /library/cpp/threading/equeue
parent475c0a46f28166e83fd263badc7546377cddcabe (diff)
downloadydb-bd085aee9b4f7a0bee302ce687964ffb7098f986.tar.gz
Restoring authorship annotation for <eeight@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/threading/equeue')
-rw-r--r--library/cpp/threading/equeue/equeue.cpp4
-rw-r--r--library/cpp/threading/equeue/equeue.h6
-rw-r--r--library/cpp/threading/equeue/equeue_ut.cpp6
3 files changed, 8 insertions, 8 deletions
diff --git a/library/cpp/threading/equeue/equeue.cpp b/library/cpp/threading/equeue/equeue.cpp
index 4a708ef3ad..54a848e912 100644
--- a/library/cpp/threading/equeue/equeue.cpp
+++ b/library/cpp/threading/equeue/equeue.cpp
@@ -71,10 +71,10 @@ void TElasticQueue::Start(size_t threadCount, size_t maxQueueSize) {
SlaveQueue_->Start(threadCount, maxQueueSize);
}
-void TElasticQueue::Stop() noexcept {
+void TElasticQueue::Stop() noexcept {
return SlaveQueue_->Stop();
}
-size_t TElasticQueue::Size() const noexcept {
+size_t TElasticQueue::Size() const noexcept {
return SlaveQueue_->Size();
}
diff --git a/library/cpp/threading/equeue/equeue.h b/library/cpp/threading/equeue/equeue.h
index ff735399e6..40dd342585 100644
--- a/library/cpp/threading/equeue/equeue.h
+++ b/library/cpp/threading/equeue/equeue.h
@@ -1,11 +1,11 @@
#pragma once
-#include <util/thread/pool.h>
+#include <util/thread/pool.h>
#include <util/system/atomic.h>
#include <util/generic/ptr.h>
//actual queue limit will be (maxQueueSize - numBusyThreads) or 0
-class TElasticQueue: public IThreadPool {
+class TElasticQueue: public IThreadPool {
public:
explicit TElasticQueue(THolder<IThreadPool> slaveQueue);
@@ -21,7 +21,7 @@ private:
bool TryIncCounter();
private:
- THolder<IThreadPool> SlaveQueue_;
+ THolder<IThreadPool> SlaveQueue_;
size_t MaxQueueSize_ = 0;
TAtomic ObjectCount_ = 0;
TAtomic GuardCount_ = 0;
diff --git a/library/cpp/threading/equeue/equeue_ut.cpp b/library/cpp/threading/equeue/equeue_ut.cpp
index d08a94848b..9cf2aced44 100644
--- a/library/cpp/threading/equeue/equeue_ut.cpp
+++ b/library/cpp/threading/equeue/equeue_ut.cpp
@@ -95,7 +95,7 @@ Y_UNIT_TEST_SUITE(TElasticQueueTest) {
Counters.Reset();
TryCounter = 0;
- struct TSender: public IThreadFactory::IThreadAble {
+ struct TSender: public IThreadFactory::IThreadAble {
void DoExecute() override {
while ((size_t)AtomicIncrement(TryCounter) <= N) {
if (!TryAdd()) {
@@ -108,9 +108,9 @@ Y_UNIT_TEST_SUITE(TElasticQueueTest) {
{
TQueueSetup setup;
- TVector< TAutoPtr<IThreadFactory::IThread> > senders;
+ TVector< TAutoPtr<IThreadFactory::IThread> > senders;
for (size_t i = 0; i < ThreadCount; ++i) {
- senders.push_back(::SystemThreadFactory()->Run(&sender));
+ senders.push_back(::SystemThreadFactory()->Run(&sender));
}
for (size_t i = 0; i < senders.size(); ++i) {