Commit 00f03504 authored by Sven Neumann's avatar Sven Neumann
Browse files

Bug 618580 - Thread pool creation fails if number of CPUs is > GIMP_MAX_NUM_THREADS

Clamp the default value for the number of processors to use to the
maximum number of threads.
parent 7de8fa52
......@@ -99,6 +99,8 @@ gimp_base_config_class_init (GimpBaseConfigClass *klass)
num_processors = num_processors * 2;
#endif
num_processors = MIN (num_processors, GIMP_MAX_NUM_THREADS);
GIMP_CONFIG_INSTALL_PROP_UINT (object_class, PROP_NUM_PROCESSORS,
"num-processors", NUM_PROCESSORS_BLURB,
1, GIMP_MAX_NUM_THREADS, num_processors,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment