mirror of https://github.com/GNOME/gimp.git
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.
This commit is contained in:
parent
7de8fa5293
commit
00f0350413
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue