mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-26 05:56:14 +01:00
abbb225738
GFileMonitor takes great care to sample the thread-default main context at the time that it is created in order that events can be dispatched to the correct thread when they come in. The inotify GFileMonitor implementation uses a global file descriptor shared between all watches. It has to poll this file descriptor from somewhere so it arbitrarily picks the default main context. The problem with that is that the user might not be running it. Let's use the GLib worker thread for this instead. It's guaranteed to be running if you need it, and this is exactly the sort of problem it was meant to solve. https://bugzilla.gnome.org/show_bug.cgi?id=704873 |
||
---|---|---|
.. | ||
ginotifydirectorymonitor.c | ||
ginotifydirectorymonitor.h | ||
ginotifyfilemonitor.c | ||
ginotifyfilemonitor.h | ||
inotify-helper.c | ||
inotify-helper.h | ||
inotify-kernel.c | ||
inotify-kernel.h | ||
inotify-missing.c | ||
inotify-missing.h | ||
inotify-path.c | ||
inotify-path.h | ||
inotify-sub.c | ||
inotify-sub.h | ||
Makefile.am |