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

backend/epoll: implement eventfd wakeup notification #128

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

steeve
Copy link

@steeve steeve commented Nov 19, 2024

Tries to mimic what happens in backend/kqueue.

Closes #4

@steeve
Copy link
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
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.
@steeve steeve force-pushed the steeve/epoll_eventfd branch from 003416b to 378a396 Compare January 20, 2025 13:37
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
2 participants