[gegl] gegl: enable multiple thread by default
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] gegl: enable multiple thread by default
- Date: Fri, 17 Nov 2017 14:03:47 +0000 (UTC)
commit 03f83003760d1b19de06e08b80143bc70156f45e
Author: Øyvind Kolås <pippin gimp org>
Date: Thu Nov 16 00:13:12 2017 +0100
gegl: enable multiple thread by default
gegl/gegl-config.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gegl/gegl-config.c b/gegl/gegl-config.c
index ba096d7..c25ee64 100644
--- a/gegl/gegl-config.c
+++ b/gegl/gegl-config.c
@@ -48,7 +48,7 @@ enum
PROP_APPLICATION_LICENSE
};
-gint _gegl_threads = 1;
+gint _gegl_threads = 1;
static void
gegl_config_get_property (GObject *gobject,
@@ -225,11 +225,13 @@ gegl_config_class_init (GeglConfigClass *klass)
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT));
+ _gegl_threads = g_get_num_processors ();
g_object_class_install_property (gobject_class, PROP_THREADS,
g_param_spec_int ("threads",
"Number of threads",
"Number of concurrent evaluation threads",
- 0, GEGL_MAX_THREADS, 1,
+ 0, GEGL_MAX_THREADS,
+ _gegl_threads,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]