Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manage sources being inserted into kqueue #153

Merged
merged 4 commits into from
Sep 28, 2023
Merged

Manage sources being inserted into kqueue #153

merged 4 commits into from
Sep 28, 2023

Conversation

notgull
Copy link
Member

@notgull notgull commented Sep 25, 2023

Thus far, our kqueue implementation has been a relatively thin layer on top of the OS kqueue. However, kqueue doesn't keep track of when the same source is inserted twice, or when a source that doesn't exist is removed. In the interest of keeping consistent behavior between backends this commit adds a system for tracking when sources are inserted.

Closes #151

Thus far, our kqueue implementation has been a relatively thin layer on
top of the OS kqueue. However, kqueue doesn't keep track of when the
same source is inserted twice, or when a source that doesn't exist is
removed. In the interest of keeping consistent behavior between backends
this commit adds a system for tracking when sources are inserted.

Closes #151

Signed-off-by: John Nunley <[email protected]>
Signed-off-by: John Nunley <[email protected]>
Signed-off-by: John Nunley <[email protected]>
Signed-off-by: John Nunley <[email protected]>
@notgull notgull merged commit 9e143a3 into master Sep 28, 2023
24 checks passed
@notgull notgull deleted the notgull/kq-exist branch September 28, 2023 04:30
@notgull notgull mentioned this pull request Oct 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Poller::add has platform-specific behavior when trying to insert the same file descriptor multiple times
1 participant