Skip to content

Epoll: Rework epoll type#619

Open
dcantah wants to merge 1 commit intoapple:mainfrom
dcantah:epoll-return-events
Open

Epoll: Rework epoll type#619
dcantah wants to merge 1 commit intoapple:mainfrom
dcantah:epoll-return-events

Conversation

@dcantah
Copy link
Copy Markdown
Member

@dcantah dcantah commented Mar 31, 2026

I've spent a lot of time in the past trying to fix all of the various issues with the epoll wrapper we had, before realizing most of them would be completely gone if we just reworked the type itself :). The callback nature, all of the handler/state tracking internally all (to me) has no purpose being in the type itself. All of this logic can live outside and the wrapper should just be a typesafe abstraction around it that you can build on. This is what this change aims to do. There should be zero behavioral difference here and this gets rid of quite a few bugs (and makes things compile with glibc)

I spent a little trying to fix all of the various issues with the
epoll wrapper we had, before realizing most of them would be completely
gone if we just reworked the type itself :). The callback nature,
all of the handler/state tracking internally all (to me) has no
purpose being in the type itself. All of this logic can live outside
and the wrapper should just be a typesafe abstraction around it
that you can build on. This is what this change aims to do. There
should be zero behavioral difference here.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant