[libdazzle] recursive-monitor: relax threading requirement
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdazzle] recursive-monitor: relax threading requirement
- Date: Fri, 1 Dec 2017 09:04:56 +0000 (UTC)
commit c142971153354907c80d3ad6820c7f758e5340a7
Author: Christian Hergert <chergert redhat com>
Date: Fri Dec 1 01:04:06 2017 -0800
recursive-monitor: relax threading requirement
We now only call this ignored function from the main thread.
src/files/dzl-recursive-file-monitor.c | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/src/files/dzl-recursive-file-monitor.c b/src/files/dzl-recursive-file-monitor.c
index d05e23a..6b85e16 100644
--- a/src/files/dzl-recursive-file-monitor.c
+++ b/src/files/dzl-recursive-file-monitor.c
@@ -560,18 +560,14 @@ dzl_recursive_file_monitor_get_root (DzlRecursiveFileMonitor *self)
/**
* dzl_recursive_file_monitor_set_ignore_func:
* @self: a #DzlRecursiveFileMonitor
- * @ignore_func: (scope async): a thread-safe #DzlRecursiveIgnoreFunc
+ * @ignore_func: (scope async): a #DzlRecursiveIgnoreFunc
* @ignore_func_data: closure data for @ignore_func
* @ignore_func_data_destroy: destroy notify for @ignore_func_data
*
* Sets a callback function to determine if a #GFile should be ignored
* from signal emission.
*
- * @ignore_func may be called from a thread other than the default
- * main thread, so any function used here MUST be thread-safe.
- *
- * Any use of a non-thread-safe callback for @ignore_func is a programmer
- * error.
+ * @ignore_func will always be called from the applications main thread.
*
* If @ignore_func is %NULL, it is set to the default which does not
* ignore any files or directories.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]