aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/messagebus/scheduler/scheduler.h
diff options
context:
space:
mode:
authornga <nga@yandex-team.ru>2022-02-10 16:48:09 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:09 +0300
commitc2a1af049e9deca890e9923abe64fe6c59060348 (patch)
treeb222e5ac2e2e98872661c51ccceee5da0d291e13 /library/cpp/messagebus/scheduler/scheduler.h
parent1f553f46fb4f3c5eec631352cdd900a0709016af (diff)
downloadydb-c2a1af049e9deca890e9923abe64fe6c59060348.tar.gz
Restoring authorship annotation for <nga@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/messagebus/scheduler/scheduler.h')
-rw-r--r--library/cpp/messagebus/scheduler/scheduler.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/library/cpp/messagebus/scheduler/scheduler.h b/library/cpp/messagebus/scheduler/scheduler.h
index 6114c3cc88b..afcc0de55d5 100644
--- a/library/cpp/messagebus/scheduler/scheduler.h
+++ b/library/cpp/messagebus/scheduler/scheduler.h
@@ -8,7 +8,7 @@
#include <util/generic/vector.h>
#include <util/system/atomic.h>
#include <util/system/condvar.h>
-#include <util/system/mutex.h>
+#include <util/system/mutex.h>
#include <util/system/thread.h>
namespace NBus {
@@ -18,10 +18,10 @@ namespace NBus {
inline IScheduleItem(TInstant scheduleTime) noexcept;
virtual ~IScheduleItem() {
}
-
+
virtual void Do() = 0;
inline TInstant GetScheduleTime() const noexcept;
-
+
private:
TInstant ScheduleTime;
};
@@ -50,16 +50,16 @@ namespace NBus {
TCondVar CondVar;
TObjectCounter<TScheduler> ObjectCounter;
-
+
bool StopThread;
NThreading::TLegacyFuture<> Thread;
};
-
+
inline IScheduleItem::IScheduleItem(TInstant scheduleTime) noexcept
: ScheduleTime(scheduleTime)
{
}
-
+
inline TInstant IScheduleItem::GetScheduleTime() const noexcept {
return ScheduleTime;
}