diff options
author | fippo <fippo@yandex-team.ru> | 2022-02-10 16:50:08 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:08 +0300 |
commit | 7bf72dabd2102d9781c1ec7a754579757baa7b90 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /util/thread/factory.cpp | |
parent | 3e57c324d47a3a202cb3c5a9648d2f92103d5213 (diff) | |
download | ydb-7bf72dabd2102d9781c1ec7a754579757baa7b90.tar.gz |
Restoring authorship annotation for <fippo@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/thread/factory.cpp')
-rw-r--r-- | util/thread/factory.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/util/thread/factory.cpp b/util/thread/factory.cpp index 082fe1a339..48e898f32d 100644 --- a/util/thread/factory.cpp +++ b/util/thread/factory.cpp @@ -49,7 +49,7 @@ namespace { return new TPoolThread; } }; - + class TThreadFactoryFuncObj: public IThreadFactory::IThreadAble { public: TThreadFactoryFuncObj(const std::function<void()>& func) @@ -63,17 +63,17 @@ namespace { private: std::function<void()> Func; - }; + }; } THolder<IThread> IThreadFactory::Run(std::function<void()> func) { THolder<IThread> ret(DoCreate()); - + ret->Run(new ::TThreadFactoryFuncObj(func)); - - return ret; -} - + + return ret; +} + static IThreadFactory* SystemThreadPoolImpl() { return Singleton<TSystemThreadFactory>(); } |