fix(PollSet): eventfd call arg; add wepoll to CMakelists.txt

This commit is contained in:
Alex Fabijanic
2022-07-06 11:58:29 +02:00
parent a1b21d2a0d
commit dd16ab04e7
2 changed files with 5 additions and 1 deletions

View File

@@ -69,7 +69,7 @@ public:
using SocketMap = std::map<void*, SocketMode>;
PollSetImpl(): _events(1024),
_eventfd(eventfd(_port)),
_eventfd(eventfd(_port, 0)),
_epollfd(epoll_create(1))
{
int err = addFD(_eventfd, PollSet::POLL_READ, EPOLL_CTL_ADD);