[gegl] gegl-operations: use a reader lock for gegl_list_operations()



commit 58cd31626452ee2cd841d4ca4ebef36ec8f48d19
Author: Ell <ell_se yahoo com>
Date:   Sun Aug 27 13:57:14 2017 -0400

    gegl-operations: use a reader lock for gegl_list_operations()

 gegl/operation/gegl-operations.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gegl/operation/gegl-operations.c b/gegl/operation/gegl-operations.c
index 822060e..0a28ec8 100644
--- a/gegl/operation/gegl-operations.c
+++ b/gegl/operation/gegl-operations.c
@@ -328,7 +328,7 @@ gchar **gegl_list_operations (guint *n_operations_p)
         }
     }
 
-  lock_operations_cache (TRUE);
+  lock_operations_cache (FALSE);
 
   n_operations = g_slist_length (operations_list);
   pasp_size   += (n_operations + 1) * sizeof (gchar *);
@@ -350,7 +350,7 @@ gchar **gegl_list_operations (guint *n_operations_p)
   if (n_operations_p)
     *n_operations_p = n_operations;
 
-  unlock_operations_cache (TRUE);
+  unlock_operations_cache (FALSE);
 
   return pasp;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]