diff options
Diffstat (limited to 'library/cpp/logger/thread_creator.h')
-rw-r--r-- | library/cpp/logger/thread_creator.h | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/library/cpp/logger/thread_creator.h b/library/cpp/logger/thread_creator.h index 61fd001a92..9e5ee9571d 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; +}; |