aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/messagebus/scheduler
diff options
context:
space:
mode:
authoryazevnul <yazevnul@yandex-team.ru>2022-02-10 16:46:46 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:46 +0300
commit8cbc307de0221f84c80c42dcbe07d40727537e2c (patch)
tree625d5a673015d1df891e051033e9fcde5c7be4e5 /library/cpp/messagebus/scheduler
parent30d1ef3941e0dc835be7609de5ebee66958f215a (diff)
downloadydb-8cbc307de0221f84c80c42dcbe07d40727537e2c.tar.gz
Restoring authorship annotation for <yazevnul@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/messagebus/scheduler')
-rw-r--r--library/cpp/messagebus/scheduler/scheduler.cpp10
-rw-r--r--library/cpp/messagebus/scheduler/scheduler_ut.cpp4
2 files changed, 7 insertions, 7 deletions
diff --git a/library/cpp/messagebus/scheduler/scheduler.cpp b/library/cpp/messagebus/scheduler/scheduler.cpp
index 5a5fe52894..506af354e6 100644
--- a/library/cpp/messagebus/scheduler/scheduler.cpp
+++ b/library/cpp/messagebus/scheduler/scheduler.cpp
@@ -23,7 +23,7 @@ TScheduler::TScheduler()
}
TScheduler::~TScheduler() {
- Y_VERIFY(StopThread, "state check");
+ Y_VERIFY(StopThread, "state check");
}
size_t TScheduler::Size() const {
@@ -34,7 +34,7 @@ size_t TScheduler::Size() const {
void TScheduler::Stop() {
{
TGuard<TLock> guard(Lock);
- Y_VERIFY(!StopThread, "Scheduler already stopped");
+ Y_VERIFY(!StopThread, "Scheduler already stopped");
StopThread = true;
CondVar.Signal();
}
@@ -44,8 +44,8 @@ void TScheduler::Stop() {
NextItem.Destroy();
}
- for (auto& item : Items) {
- item.Destroy();
+ for (auto& item : Items) {
+ item.Destroy();
}
}
@@ -98,7 +98,7 @@ void TScheduler::SchedulerThread() {
}
// signal comes if either scheduler is to be stopped of there's work to do
- Y_VERIFY(!!NextItem, "state check");
+ Y_VERIFY(!!NextItem, "state check");
if (TInstant::Now() < NextItem->GetScheduleTime()) {
// NextItem is updated since WaitD
diff --git a/library/cpp/messagebus/scheduler/scheduler_ut.cpp b/library/cpp/messagebus/scheduler/scheduler_ut.cpp
index a5ea641c10..afe89e9263 100644
--- a/library/cpp/messagebus/scheduler/scheduler_ut.cpp
+++ b/library/cpp/messagebus/scheduler/scheduler_ut.cpp
@@ -7,7 +7,7 @@
using namespace NBus;
using namespace NBus::NPrivate;
-Y_UNIT_TEST_SUITE(TSchedulerTests) {
+Y_UNIT_TEST_SUITE(TSchedulerTests) {
struct TSimpleScheduleItem: public IScheduleItem {
TTestSync* const TestSync;
@@ -22,7 +22,7 @@ Y_UNIT_TEST_SUITE(TSchedulerTests) {
}
};
- Y_UNIT_TEST(Simple) {
+ Y_UNIT_TEST(Simple) {
TTestSync testSync;
TScheduler scheduler;