2
3
4
5
17
18
28
29
30
34
35
39
40
41
45
46
47
51
52
53
57
58
59
60
61 virtual void Poll(
int timeoutMs, ChannelList* activeChannels)
override;
64
65
66
70
71
72
78
79
80
81
85
86
87
88
94
95
99
100
void SetPollState(PollState state)
Set Poll State.
PollState GetPollState() const
Get Poll State.
bool IsNoneEvent() const
Determine whether the event is a None Event.
Wrapper of SOCKET'S Event.
EPollPoller(const EPollPoller &)=delete
Copy Constructor Function.
HANDLE m_EPollFd
EPoll fd.
virtual ~EPollPoller() override
Destructor Function.
void Update(int operation, Channel *channel) const
Update epoll with operation.
virtual void Poll(int timeoutMs, ChannelList *activeChannels) override
Poll events on EventList.
virtual void UpdateChannel(Channel *channel) override
Update Channel and Update Poll.
virtual void RemoveChannel(Channel *channel) override
Remove Channel and Update Poll.
EPollPoller & operator=(const EPollPoller &)=delete
Copy Assignment Operation.
EventList m_Events
EventList.
void FillActiveChannels(int numEvents, ChannelList *activeChannels) const
Fill REvents to ChannelList.
EPollPoller(EventLoop *loop)
Constructor Function.
HANDLE GetHandle() const
Get this EPollPoller Handle.
Wrapper of Poller and wakeup socket to acceptor(SubLoop).
Poller(EventLoop *loop)
Constructor Function.
Inherit from this and Implement Specific Poller.
static constexpr int InitEventListSize