aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/logger/thread_creator.h
diff options
context:
space:
mode:
authoriddqd <iddqd@yandex-team.ru>2022-02-10 16:49:45 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:45 +0300
commit07fce9c5f7771600d0b3d70e1f88fd8a7e164d85 (patch)
treee4aa4750fbb864d70f8c06cf03d2750e979ea3bf /library/cpp/logger/thread_creator.h
parentaf42068bf6cd93c976b80dd0388fa48cdf65da11 (diff)
downloadydb-07fce9c5f7771600d0b3d70e1f88fd8a7e164d85.tar.gz
Restoring authorship annotation for <iddqd@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/logger/thread_creator.h')
-rw-r--r--library/cpp/logger/thread_creator.h40
1 files changed, 20 insertions, 20 deletions
diff --git a/library/cpp/logger/thread_creator.h b/library/cpp/logger/thread_creator.h
index 9e5ee9571d..61fd001a92 100644
--- a/library/cpp/logger/thread_creator.h
+++ b/library/cpp/logger/thread_creator.h
@@ -1,20 +1,20 @@
-#pragma once
-
-#include "backend_creator.h"
-
-#include <functional>
-
-class TOwningThreadedLogBackendCreator: public ILogBackendCreator {
-public:
- TOwningThreadedLogBackendCreator(THolder<ILogBackendCreator>&& slave);
- virtual bool Init(const IInitContext& ctx) override;
- virtual void ToJson(NJson::TJsonValue& value) const override;
- void SetQueueOverflowCallback(std::function<void()> callback);
- void SetQueueLen(size_t len);
-
-private:
- virtual THolder<TLogBackend> DoCreateLogBackend() const override;
- THolder<ILogBackendCreator> Slave;
- std::function<void()> QueueOverflowCallback = {};
- size_t QueueLen = 0;
-};
+#pragma once
+
+#include "backend_creator.h"
+
+#include <functional>
+
+class TOwningThreadedLogBackendCreator: public ILogBackendCreator {
+public:
+ TOwningThreadedLogBackendCreator(THolder<ILogBackendCreator>&& slave);
+ virtual bool Init(const IInitContext& ctx) override;
+ virtual void ToJson(NJson::TJsonValue& value) const override;
+ void SetQueueOverflowCallback(std::function<void()> callback);
+ void SetQueueLen(size_t len);
+
+private:
+ virtual THolder<TLogBackend> DoCreateLogBackend() const override;
+ THolder<ILogBackendCreator> Slave;
+ std::function<void()> QueueOverflowCallback = {};
+ size_t QueueLen = 0;
+};