]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Fri, 11 May 2012 11:53:21 +0000 (11:53 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Fri, 11 May 2012 11:53:21 +0000 (11:53 +0000)
MagickCore/thread-private.h

index 7496eeb7f1eee251f81f83a1f69536df58e6dfc6..3ab40c9fc89167a6f47b1ce5f4e3ec808ae8ba02 100644 (file)
@@ -28,11 +28,11 @@ extern "C" {
 /*
   Single threaded unless workload justifies the threading overhead.
 */
-#define MinimumWorkLoad()  (16*GetMagickResourceLimit(ThreadResource))
+#define WorkloadThreshold()  (16*GetMagickResourceLimit(ThreadResource))
 #define dynamic_number_threads(columns,rows,expression) \
-  if (((((columns) > MinimumWorkLoad()) || \
-      ((rows) > MinimumWorkLoad()))) && ((MagickSizeType) \
-      ((columns)*(rows)) > (MinimumWorkLoad()*MinimumWorkLoad())) && \
+  if (((((columns) > WorkloadThreshold()) || \
+      ((rows) > WorkloadThreshold()))) && ((MagickSizeType) \
+      ((columns)*(rows)) > (WorkloadThreshold()*WorkloadThreshold())) && \
       (expression)) \
     num_threads(GetMagickResourceLimit(ThreadResource))