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

G_IO_PRI is not supported #1

Open
mzabaluev opened this issue Jan 24, 2014 · 0 comments
Open

G_IO_PRI is not supported #1

mzabaluev opened this issue Jan 24, 2014 · 0 comments
Labels

Comments

@mzabaluev
Copy link
Owner

libuv does not support polling for "urgent data". The need for this is marginal, but in case there is any GLib code that relies on G_IO_PRI events, the uv backend has to support it.

One solution is to have a helper thread per each context that's got a G_IO_PRI descriptor added. The thread would poll for events not supported by libuv, doing it concurrently with the polling in libuv, unblocking immediately (e.g. via eventfd) when the libuv poll has unblocked and vice versa.

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

No branches or pull requests

1 participant