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

m: Use EVFILT_USER instead of a self-pipe on kqueue where supported #73

Merged
merged 2 commits into from
Jan 13, 2023

Conversation

notgull
Copy link
Member

@notgull notgull commented Jan 12, 2023

Certain BSD platforms (macOS and FreeBSD) support an EVFILT_USER event on kqueue, which lets the user send arbitrary events to the queue to be dequeued. This PR adds a system that uses EVFILT_USER when available to notify the Poller instead of a self-pipe.

Draft because I need to test this on FreeBSD and NetBSD.

@notgull
Copy link
Member Author

notgull commented Jan 12, 2023

Verified that this works on FreeBSD and NetBSD, although tests fail on NetBSD because it does not support high precision mode (#75).

@notgull notgull marked this pull request as ready for review January 12, 2023 18:19
@notgull notgull merged commit 27f23a9 into master Jan 13, 2023
@notgull notgull deleted the notgull/kqueue-userfilt branch January 13, 2023 05:35
@notgull notgull mentioned this pull request Mar 6, 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.

1 participant