[gegl] gegl: GEGL_MAX_THREADS as GeglConfig's "threads" property max value.



commit f26acbbbfdce80702da423101b75037b33f32cee
Author: Jehan <jehan girinstud io>
Date:   Tue Jul 18 15:58:01 2017 +0200

    gegl: GEGL_MAX_THREADS as GeglConfig's "threads" property max value.
    
    It was still hardcoded to 16. Otherwise changes like commit 6d128ac end
    up in trying to set out-of-range values to "threads".

 gegl/gegl-config.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gegl/gegl-config.c b/gegl/gegl-config.c
index c82af31..1e27732 100644
--- a/gegl/gegl-config.c
+++ b/gegl/gegl-config.c
@@ -234,7 +234,7 @@ gegl_config_class_init (GeglConfigClass *klass)
                                    g_param_spec_int ("threads",
                                                      "Number of threads",
                                                      "Number of concurrent evaluation threads",
-                                                     0, 16, 1,
+                                                     0, GEGL_MAX_THREADS, 1,
                                                      G_PARAM_READWRITE |
                                                      G_PARAM_CONSTRUCT));
 


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