mzabaluev / glib-uv Goto Github PK
View Code? Open in Web Editor NEWGLib and uv living together and sharing the event loop!
GLib and uv living together and sharing the event loop!
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.
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
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.