aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/threading/equeue
diff options
context:
space:
mode:
authortobo <tobo@yandex-team.ru>2022-02-10 16:47:27 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:27 +0300
commit55a7f90e4cd31e9481cace8ee5dfd682c27e810e (patch)
tree9814fbd1c3effac9b8377c5d604b367b14e2db55 /library/cpp/threading/equeue
parent7fe839092527589b38f014d854c51565b3c1adfa (diff)
downloadydb-55a7f90e4cd31e9481cace8ee5dfd682c27e810e.tar.gz
Restoring authorship annotation for <tobo@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/threading/equeue')
-rw-r--r--library/cpp/threading/equeue/equeue.cpp2
-rw-r--r--library/cpp/threading/equeue/equeue_ut.cpp6
2 files changed, 4 insertions, 4 deletions
diff --git a/library/cpp/threading/equeue/equeue.cpp b/library/cpp/threading/equeue/equeue.cpp
index 9d3b2785db..54a848e912 100644
--- a/library/cpp/threading/equeue/equeue.cpp
+++ b/library/cpp/threading/equeue/equeue.cpp
@@ -29,7 +29,7 @@ public:
AtomicIncrement(Queue_->ObjectCount_);
}
- ~TDecrementingWrapper() override {
+ ~TDecrementingWrapper() override {
AtomicDecrement(Queue_->ObjectCount_);
AtomicDecrement(Queue_->GuardCount_);
}
diff --git a/library/cpp/threading/equeue/equeue_ut.cpp b/library/cpp/threading/equeue/equeue_ut.cpp
index 5ff4c69347..9cf2aced44 100644
--- a/library/cpp/threading/equeue/equeue_ut.cpp
+++ b/library/cpp/threading/equeue/equeue_ut.cpp
@@ -41,7 +41,7 @@ Y_UNIT_TEST_SUITE(TElasticQueueTest) {
Counters.Reset();
struct TWaitJob: public IObjectInQueue {
- void Process(void*) override {
+ void Process(void*) override {
WaitEvent.Wait();
AtomicIncrement(Counters.Processed);
}
@@ -72,7 +72,7 @@ Y_UNIT_TEST_SUITE(TElasticQueueTest) {
//concurrent test -- send many jobs from different threads
struct TJob: public IObjectInQueue {
- void Process(void*) override {
+ void Process(void*) override {
AtomicIncrement(Counters.Processed);
};
};
@@ -96,7 +96,7 @@ Y_UNIT_TEST_SUITE(TElasticQueueTest) {
TryCounter = 0;
struct TSender: public IThreadFactory::IThreadAble {
- void DoExecute() override {
+ void DoExecute() override {
while ((size_t)AtomicIncrement(TryCounter) <= N) {
if (!TryAdd()) {
Sleep(TDuration::MicroSeconds(50));