Skip to content

backend/epoll: implement eventfd wakeup notification #128

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

Merged
merged 5 commits into from
Feb 5, 2025

Conversation

steeve
Copy link
Contributor

@steeve steeve commented Nov 19, 2024

Tries to mimic what happens in backend/kqueue.

Closes #4

@steeve
Copy link
Contributor Author

steeve commented Nov 19, 2024

Added note, without this, trying to use any thread scheduled operation (like file io) will be very slow (up to 100ms).

@steeve
Copy link
Contributor Author

steeve commented Jan 7, 2025

gentle ping @mitchellh

@steeve steeve force-pushed the steeve/epoll_eventfd branch 3 times, most recently from 5bc3ad9 to 003416b Compare January 17, 2025 21:34
steeve and others added 5 commits January 20, 2025 14:36
Tries to mimic what happens in backend/kqueue.

Closes mitchellh#4
Since eventfd is now implemented.
Close might block, so dispatch it inside a threadpool.
If an immediate action is dispatched, the loop might block
on epoll_wait even though only one action was requested.
@mitchellh
Copy link
Owner

Sorry for the delay. this looks great!

@mitchellh mitchellh merged commit c6e8719 into mitchellh:main Feb 5, 2025
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.

eventfd for wakeup notifications for epoll
3 participants