]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sun, 6 May 2012 01:28:57 +0000 (01:28 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sun, 6 May 2012 01:28:57 +0000 (01:28 +0000)
MagickCore/thread-private.h

index f299768c5fc23e782dbdb8222b18963d1154dc8d..97a783a41f885170d6bd0e33d32b025824eff8b5 100644 (file)
@@ -29,6 +29,11 @@ extern "C" {
   if (((((columns) > ThreadThreshold) || ((rows) > ThreadThreshold))) && \
       ((MagickSizeType) (columns*rows) > (ThreadThreshold*ThreadThreshold))) \
    num_threads(GetMagickResourceLimit(ThreadResource))
+#define IsConcurrentExp(columns,rows,expression) \
+  if (((((columns) > ThreadThreshold) || ((rows) > ThreadThreshold))) && \
+      ((MagickSizeType) (columns*rows) > (ThreadThreshold*ThreadThreshold)) && \
+      (expression)) \
+   num_threads(GetMagickResourceLimit(ThreadResource))
 
 #if (__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR > 10))
 #define MagickCachePrefetch(address,mode,locality) \