diff options
author | Ruslan Kovalev <ruslan.a.kovalev@gmail.com> | 2022-02-10 16:46:44 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:44 +0300 |
commit | 59e19371de37995fcb36beb16cd6ec030af960bc (patch) | |
tree | fa68e36093ebff8b805462e9e6d331fe9d348214 /library/cpp/coroutine/engine/poller.h | |
parent | 89db6fe2fe2c32d2a832ddfeb04e8d078e301084 (diff) | |
download | ydb-59e19371de37995fcb36beb16cd6ec030af960bc.tar.gz |
Restoring authorship annotation for Ruslan Kovalev <ruslan.a.kovalev@gmail.com>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/coroutine/engine/poller.h')
-rw-r--r-- | library/cpp/coroutine/engine/poller.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/library/cpp/coroutine/engine/poller.h b/library/cpp/coroutine/engine/poller.h index 8ea012c0fc..73d482cfaf 100644 --- a/library/cpp/coroutine/engine/poller.h +++ b/library/cpp/coroutine/engine/poller.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include <util/generic/ptr.h> #include <util/generic/vector.h> @@ -6,15 +6,15 @@ #include <util/network/pollerimpl.h> #include <util/datetime/base.h> -enum class EContPoller { - Default /* "default" */, +enum class EContPoller { + Default /* "default" */, Combined /* "combined" */, - Select /* "select" */, - Poll /* "poll" */, - Epoll /* "epoll" */, - Kqueue /* "kqueue" */ -}; - + Select /* "select" */, + Poll /* "poll" */, + Epoll /* "epoll" */, + Kqueue /* "kqueue" */ +}; + class IPollerFace { public: struct TChange { @@ -29,12 +29,12 @@ public: ui16 Filter; }; - using TEvents = TVector<TEvent>; + using TEvents = TVector<TEvent>; virtual ~IPollerFace() { } - void Set(void* ptr, SOCKET fd, ui16 flags) { + void Set(void* ptr, SOCKET fd, ui16 flags) { const TChange c = {fd, ptr, flags}; Set(c); @@ -44,7 +44,7 @@ public: virtual void Wait(TEvents& events, TInstant deadLine) = 0; virtual EContPoller PollEngine() const = 0; - static THolder<IPollerFace> Default(); - static THolder<IPollerFace> Construct(TStringBuf name); - static THolder<IPollerFace> Construct(EContPoller poller); + static THolder<IPollerFace> Default(); + static THolder<IPollerFace> Construct(TStringBuf name); + static THolder<IPollerFace> Construct(EContPoller poller); }; |