aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/threading/future/legacy_future.h
diff options
context:
space:
mode:
authoreeight <eeight@yandex-team.ru>2022-02-10 16:46:18 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:18 +0300
commit475c0a46f28166e83fd263badc7546377cddcabe (patch)
tree39c5a49b8aaad78fe390b6f1f2886bdbda40f3e7 /library/cpp/threading/future/legacy_future.h
parenta6e0145a095c7bb3770d6e07aee301de5c73f96e (diff)
downloadydb-475c0a46f28166e83fd263badc7546377cddcabe.tar.gz
Restoring authorship annotation for <eeight@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/threading/future/legacy_future.h')
-rw-r--r--library/cpp/threading/future/legacy_future.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/library/cpp/threading/future/legacy_future.h b/library/cpp/threading/future/legacy_future.h
index 6f1eabad73..5240f92992 100644
--- a/library/cpp/threading/future/legacy_future.h
+++ b/library/cpp/threading/future/legacy_future.h
@@ -3,13 +3,13 @@
#include "fwd.h"
#include "future.h"
-#include <util/thread/factory.h>
+#include <util/thread/factory.h>
#include <functional>
namespace NThreading {
template <typename TR, bool IgnoreException>
- class TLegacyFuture: public IThreadFactory::IThreadAble, TNonCopyable {
+ class TLegacyFuture: public IThreadFactory::IThreadAble, TNonCopyable {
public:
typedef TR(TFunctionSignature)();
using TFunctionObjectType = std::function<TFunctionSignature>;
@@ -18,10 +18,10 @@ namespace NThreading {
private:
TFunctionObjectType Func_;
TPromise<TResult> Result_;
- THolder<IThreadFactory::IThread> Thread_;
+ THolder<IThreadFactory::IThread> Thread_;
public:
- inline TLegacyFuture(const TFunctionObjectType func, IThreadFactory* pool = SystemThreadFactory())
+ inline TLegacyFuture(const TFunctionObjectType func, IThreadFactory* pool = SystemThreadFactory())
: Func_(func)
, Result_(NewPromise<TResult>())
, Thread_(pool->Run(this))