]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Thu, 17 Jan 2013 18:17:37 +0000 (18:17 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Thu, 17 Jan 2013 18:17:37 +0000 (18:17 +0000)
MagickCore/thread-private.h

index 69cc5a98c9893a639f57db6bfba5860a80d98ce0..aebe3c95c295b1f908ee9facb70bcfcbf713ecbe 100644 (file)
@@ -32,8 +32,10 @@ extern "C" {
 #define magick_threads(source,destination,chunk,expression) \
   num_threads((expression) == 0 ? 1 : \
     ((chunk) > (16*GetMagickResourceLimit(ThreadResource))) && \
-     (GetImagePixelCacheType(source) != DiskCache) && \
-     (GetImagePixelCacheType(destination) != DiskCache) ? \
+     ((GetImagePixelCacheType(source) == MemoryCache) || \
+      (GetImagePixelCacheType(source) == MapCache)) && \
+     ((GetImagePixelCacheType(destination) == MemoryCache) || \
+      (GetImagePixelCacheType(destination) == MapCache)) ? \
       GetMagickResourceLimit(ThreadResource) : \
       GetMagickResourceLimit(ThreadResource) < 2 ? 1 : 2)