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

Way to externalise polling operation #185

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

daurnimator
Copy link
Collaborator

@daurnimator daurnimator commented Jun 3, 2017

As noted in #35

This PR adds a cqueues object method :pollset which returns 3 tables in list form: fds that it is interested in reading/writing/priority.

It returns 3 tables of file descriptors that need to be polled for POLLIN, POLLOUT and POLLPRI respectively
@daurnimator
Copy link
Collaborator Author

daurnimator commented Jun 4, 2017

I wonder if instead, :pollfd should return a userdata that contains the poll set?

After this PR we'll want another one where cqueues.poll with a cq has a special path where :pollset might be used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant