aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/coroutine/engine/impl.h
diff options
context:
space:
mode:
authorvlad-kolotvin <vlad-kolotvin@yandex-team.ru>2022-02-10 16:48:20 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:20 +0300
commit9ff71a8b1ce582cb08730cb11eb25839441317d1 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/coroutine/engine/impl.h
parentd26952c54d3ee92bbdc1888b64f3dec893e5a383 (diff)
downloadydb-9ff71a8b1ce582cb08730cb11eb25839441317d1.tar.gz
Restoring authorship annotation for <vlad-kolotvin@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/coroutine/engine/impl.h')
-rw-r--r--library/cpp/coroutine/engine/impl.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/library/cpp/coroutine/engine/impl.h b/library/cpp/coroutine/engine/impl.h
index dd2dee99ba..283a96ecf1 100644
--- a/library/cpp/coroutine/engine/impl.h
+++ b/library/cpp/coroutine/engine/impl.h
@@ -6,7 +6,7 @@
#include "poller.h"
#include "stack/stack_common.h"
#include "trampoline.h"
-#include "custom_time.h"
+#include "custom_time.h"
#include <library/cpp/containers/intrusive_rb_tree/rb_tree.h>
@@ -15,7 +15,7 @@
#include <util/generic/intrlist.h>
#include <util/datetime/base.h>
#include <util/generic/maybe.h>
-#include <util/generic/function.h>
+#include <util/generic/function.h>
#define EWAKEDUP 34567
@@ -49,7 +49,7 @@ private:
NCoro::NStack::IAllocator& allocator,
uint32_t stackSize,
TContExecutor& executor,
- NCoro::TTrampoline::TFunc func,
+ NCoro::TTrampoline::TFunc func,
const char* name
) noexcept;
@@ -156,8 +156,8 @@ public:
NCoro::IScheduleCallback* = nullptr,
NCoro::IEnterPollerCallback* = nullptr,
NCoro::NStack::EGuard stackGuard = NCoro::NStack::EGuard::Canary,
- TMaybe<NCoro::NStack::TPoolAllocatorSettings> poolSettings = Nothing(),
- NCoro::ITime* time = nullptr
+ TMaybe<NCoro::NStack::TPoolAllocatorSettings> poolSettings = Nothing(),
+ NCoro::ITime* time = nullptr
);
~TContExecutor();
@@ -202,12 +202,12 @@ public:
TMaybe<ui32> customStackSize = Nothing()
) noexcept;
- TCont* CreateOwned(
- NCoro::TTrampoline::TFunc func,
- const char* name,
- TMaybe<ui32> customStackSize = Nothing()
- ) noexcept;
-
+ TCont* CreateOwned(
+ NCoro::TTrampoline::TFunc func,
+ const char* name,
+ TMaybe<ui32> customStackSize = Nothing()
+ ) noexcept;
+
NCoro::TContPoller* Poller() noexcept {
return &Poller_;
}
@@ -265,9 +265,9 @@ public:
void ScheduleUserEvent(IUserEvent* event) {
UserEvents_.PushBack(event);
}
-
- void Pause();
- TInstant Now();
+
+ void Pause();
+ TInstant Now();
private:
void Release(TCont* cont) noexcept;
@@ -308,6 +308,6 @@ private:
size_t Allocated_ = 0;
TCont* Current_ = nullptr;
bool FailOnError_ = false;
- bool Paused_ = false;
- NCoro::ITime* Time_ = nullptr;
+ bool Paused_ = false;
+ NCoro::ITime* Time_ = nullptr;
};