Code Monkey home page Code Monkey logo

glib-uv's People

Contributors

mzabaluev avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

glib-uv's Issues

Descriptors not supported by uv cause a crash

Currently libuv aborts when EPOLL_CTL_ADD fails to add a descriptor to the poll. This can happen when the descriptor is not pollable accordingly to the kernel. The GMainContext API in GLib, however, supports any Unix descriptors because the upstream implementation uses POSIX poll().
To fix this, libuv should be changed to gracefully report such failures, e.g. by calling the poll callback once with an error status.

How to build this project?

Hi!
It's been long time to commit however, would you help me for build this?
I was trying to build with autoconf, and there are some problems.

$ vim configure.ac
$ libtoolize --force
$ aclocal
$ autoheader
$ automake --force-missing --add-missing
$ autoconf
$autoreconf -fi
./configure
....
...
..
.
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GLIB... yes
checking for UV... yes
checking whether g_main_loop_new_with_poller is declared... no
configure: error: GLib poller support is required

G_IO_PRI is not supported

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.