[gimp] app: default the number of threads used to g_get_num_processors()



commit 26a238c5fbc993c45a01f4599adc8923353f1838
Author: Michael Natterer <mitch gimp org>
Date:   Tue Aug 8 23:03:20 2017 +0200

    app: default the number of threads used to g_get_num_processors()
    
    Let the bug reporting begin.

 app/config/gimpgeglconfig.c |    9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)
---
diff --git a/app/config/gimpgeglconfig.c b/app/config/gimpgeglconfig.c
index 499f8fc..1db992a 100644
--- a/app/config/gimpgeglconfig.c
+++ b/app/config/gimpgeglconfig.c
@@ -134,21 +134,12 @@ gimp_gegl_config_class_init (GimpGeglConfigClass *klass)
 
   n_threads = g_get_num_processors ();
 
-#ifdef GIMP_UNSTABLE
-  n_threads *= 2;
-#endif
-
   max_n_threads =
     G_PARAM_SPEC_INT (g_object_class_find_property (G_OBJECT_GET_CLASS (gegl_config ()),
                                                     "threads"))->maximum;
 
   n_threads = MIN (n_threads, max_n_threads);
 
-#ifdef __GNUC__
-#warning Defaulting # of threads to 1
-#endif
-  n_threads = 1;
-
   GIMP_CONFIG_PROP_INT (object_class, PROP_NUM_PROCESSORS,
                         "num-processors",
                         "Number of threads to use",


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