[gimp/metadata-browser] app: don't set GeglConfig:threads, it breaks things



commit 7b212e00a7186681e5b439575cd91383376eee4c
Author: Michael Natterer <mitch gimp org>
Date:   Sun May 20 19:35:04 2012 +0200

    app: don't set GeglConfig:threads, it breaks things

 app/gegl/gimp-gegl.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/app/gegl/gimp-gegl.c b/app/gegl/gimp-gegl.c
index 5e9047a..c96f400 100644
--- a/app/gegl/gimp-gegl.c
+++ b/app/gegl/gimp-gegl.c
@@ -53,11 +53,17 @@ gimp_gegl_init (Gimp *gimp)
 #warning limiting tile cache size to G_MAXINT
 #endif
 
+#ifdef __GNUC__
+#warning not setting GeglConfig:threads
+#endif
+
   g_object_set (gegl_config (),
                 "tile-width",  TILE_WIDTH,
                 "tile-height", TILE_HEIGHT,
                 "cache-size",  (gint) MIN (config->tile_cache_size, G_MAXINT),
+#if 0
                 "threads",     config->num_processors,
+#endif
                 NULL);
 
   /* turn down the precision of babl - permitting use of lookup tables for
@@ -91,7 +97,9 @@ gimp_gegl_notify_tile_cache_size (GimpGeglConfig *config)
 static void
 gimp_gegl_notify_num_processors (GimpGeglConfig *config)
 {
+#if 0
   g_object_set (gegl_config (),
                 "threads", config->num_processors,
                 NULL);
+#endif
 }



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