Skip to content

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