From 938319cd44183fe0c968164ccf40faf4c68f113c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 30 Oct 2020 15:44:54 +0100 Subject: [PATCH] event/WinSelect: reorder method prototypes --- src/event/WinSelectBackend.hxx | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/event/WinSelectBackend.hxx b/src/event/WinSelectBackend.hxx index 462bd98ad..3cd52d3d0 100644 --- a/src/event/WinSelectBackend.hxx +++ b/src/event/WinSelectBackend.hxx @@ -99,17 +99,13 @@ class WinSelectBackend SocketSet event_set[2]; std::unordered_map items; - bool CanModify(Item &item, unsigned events, - int event_id) const noexcept; - void Modify(Item &item, SOCKET fd, unsigned events, - int event_id) noexcept; - - WinSelectBackend(WinSelectBackend &) = delete; - WinSelectBackend &operator=(WinSelectBackend &) = delete; public: WinSelectBackend() noexcept; ~WinSelectBackend() noexcept; + WinSelectBackend(WinSelectBackend &) = delete; + WinSelectBackend &operator=(WinSelectBackend &) = delete; + PollResultGeneric ReadEvents(int timeout_ms) noexcept; bool Add(SOCKET fd, unsigned events, void *obj) noexcept; bool Modify(SOCKET fd, unsigned events, void *obj) noexcept; @@ -117,6 +113,12 @@ public: bool Abandon(SOCKET fd) noexcept { return Remove(fd); } + +private: + bool CanModify(Item &item, unsigned events, + int event_id) const noexcept; + void Modify(Item &item, SOCKET fd, unsigned events, + int event_id) noexcept; }; #endif