[gimp] app: GIMP_MAX_NUM_THREADS should follow max value of GeglConfig's...



commit 894d85f64aabc7727ca409b72197a8978f628c5b
Author: Jehan <jehan girinstud io>
Date:   Tue Jul 18 16:41:32 2017 +0200

    app: GIMP_MAX_NUM_THREADS should follow max value of GeglConfig's...
    
    ... "threads" property.
    Actually there is no need of having a public GEGL_MAX_THREADS as written
    in the previous commit. We can just retrieve the max for a GObject
    property.

 app/config/gimpgeglconfig.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/app/config/gimpgeglconfig.c b/app/config/gimpgeglconfig.c
index 00f6911..7cdb48f 100644
--- a/app/config/gimpgeglconfig.c
+++ b/app/config/gimpgeglconfig.c
@@ -38,7 +38,8 @@
 #include "gimp-intl.h"
 
 
-#define GIMP_MAX_NUM_THREADS 64
+#define GIMP_MAX_NUM_THREADS G_PARAM_SPEC_INT (g_object_class_find_property (G_OBJECT_GET_CLASS 
(gegl_config()), \
+                                                                             "threads"))->maximum
 #define GIMP_MAX_MEM_PROCESS (MIN (G_MAXSIZE, GIMP_MAX_MEMSIZE))
 
 enum


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