aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/coroutine/engine/poller.h
diff options
context:
space:
mode:
authorRuslan Kovalev <ruslan.a.kovalev@gmail.com>2022-02-10 16:46:45 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:45 +0300
commit9123176b341b6f2658cff5132482b8237c1416c8 (patch)
tree49e222ea1c5804306084bb3ae065bb702625360f /library/cpp/coroutine/engine/poller.h
parent59e19371de37995fcb36beb16cd6ec030af960bc (diff)
downloadydb-9123176b341b6f2658cff5132482b8237c1416c8.tar.gz
Restoring authorship annotation for Ruslan Kovalev <ruslan.a.kovalev@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/coroutine/engine/poller.h')
-rw-r--r--library/cpp/coroutine/engine/poller.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/library/cpp/coroutine/engine/poller.h b/library/cpp/coroutine/engine/poller.h
index 73d482cfaf..8ea012c0fc 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);
};