mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-04 02:06:18 +01:00
cbf68cb22d
Adding file descriptors to a GSource provides similar functionality to the old g_source_add_poll() API with two main differences. First: the list of handles is managed internally and therefore users are prevented from randomly modifying the ->events field. This prepares us for an epoll future where changing the event mask is a syscall. Second: keeping the list internally allows us to check the ->revents for events for ourselves, allowing the source to skip implementing check/prepare. This also prepares us for the future by allowing an implementation that doesn't need to iterate over all of the sources every time. https://bugzilla.gnome.org/show_bug.cgi?id=686853 |
||
---|---|---|
.. | ||
reference | ||
debugging.txt | ||
macros.txt | ||
Makefile.am |