mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02:00
GFileMonitorSource: return "interesting" value
Return an "interesting" boolean from the event handler function on GFileMonitorSource. An event was "interesting" if it will result in a signal actually being dispatched to the user. It is "uninteresting" if it only hit an already-dirty rate limiter. We will use this information to do some backing off in the backends when faced with a flood of uninteresting events.
This commit is contained in:
@@ -91,7 +91,7 @@ g_local_file_monitor_new_in_worker (const gchar *pathname,
|
||||
|
||||
/* for implementations of GLocalFileMonitor */
|
||||
GLIB_AVAILABLE_IN_2_44
|
||||
void
|
||||
gboolean
|
||||
g_file_monitor_source_handle_event (GFileMonitorSource *fms,
|
||||
GFileMonitorEvent event_type,
|
||||
const gchar *child,
|
||||
|
Reference in New Issue
Block a user