+2009-09-11 6.5.5-10 Cristy <quetzlzacatenango@image...>
+ * Return the global maximum threads to avoid the rare cache view assertions.
+
+2009-09-10 6.5.5-9 Cristy <quetzlzacatenango@image...>
+ * Do not include last line of text in the interline spacing computation.
+
2009-09-07 6.5.5-8 Cristy <quetzlzacatenango@image...>
* Check that quantum_info is defined before destroying it in the PNG coder.
* Add -interline-spacing option to convert.
register long
i,
+ id,
x;
register MagickPixelPacket
}
average_indexes=GetCacheViewAuthenticIndexQueue(average_view);
pixel=zero;
- average_pixel=average_pixels[GetOpenMPThreadId()];
+ id=GetOpenMPThreadId();
+ average_pixel=average_pixels[id];
for (x=0; x < (long) average_image->columns; x++)
average_pixel[x]=zero;
next=image;
static inline unsigned long GetOpenMPMaximumThreads(void)
{
#if defined(MAGICKCORE_OPENMP_SUPPORT)
- return((unsigned long) omp_get_max_threads());
+ {
+ static unsigned long
+ maximum_threads = 1UL;
+
+ if (omp_get_max_threads() > (long) maximum_threads)
+ maximum_threads=omp_get_max_threads();
+ return(maximum_threads);
+ }
#endif
return(1UL);
}