]> granicus.if.org Git - imagemagick/blobdiff - MagickWand/wand-view.c
(no commit message)
[imagemagick] / MagickWand / wand-view.c
index c49b439eb0af1e0a2014d291188308cf26fdcda1..bd8e48310a4af8b4861c294eadd9147814f5e8ec 100644 (file)
@@ -725,7 +725,7 @@ static PixelWand ***AcquirePixelsThreadSet(const size_t number_wands)
   size_t
     number_threads;
 
-  number_threads=(size_t) GetMagickResourceLimit(ThreadResource);
+  number_threads=GetOpenMPMaximumThreads();
   pixel_wands=(PixelWand ***) AcquireQuantumMemory(number_threads,
     sizeof(*pixel_wands));
   if (pixel_wands == (PixelWand ***) NULL)